Files
odfstudio/sc/source/ui
Justin Luth c451264db7 tdf#111843 sc HasSelection: check if MultiMark is actually a selection
Somewhat surprisingly, it is very easy for Calc to report a selection
when the selection has actually been negated.
And sadly I didn't even see any examples in the code that checked.

ScViewFunc::SearchAndReplace early on calls
DoneBlockMode(true);  // don't delete mark
which actually does delete the mark (if it has been negated).

So very quickly after HasSelection said that it did have a selection
this function cleared that status, so the rest of SearchAndReplace
operated on a no-selection state.

So ensure the correct state in srchdlg's TimeoutHdl_Impl
to prevent the user from requesting 'Current selection only'
when no selection is actually available.

Change-Id: Ifcafe251e68f036a25556cf5533d06337878d606
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208249
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-21 11:22:34 +02:00
..
2026-04-25 10:57:54 +02:00
2026-05-10 15:14:33 +02:00