summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-10-07 17:19:26 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-10-07 17:19:26 +0200
commita31f95b180728c1c671930913b4b4ad96ebcda5f (patch)
treee3bd205014096855a000bcbe67ec6bac6e3b08ef
parentc5ceddf3445f7d56ea4f044366e4a797703bdd0c (diff)
sc tiled rendering: fix showing all search results
Calc can have multiple cells selected, but there is only one cell which has the black border around the cell. Code in ScViewFunc::SearchAndReplace() assumed that the two are always the same, and that's how find-all always highlighted the first match only. Fix this by avoiding emitting LOK_CALLBACK_TEXT_SELECTION two times, at least in the find-all case. Change-Id: Ifce789c7f5f11e94fb2445846279823096ecb2dd
-rw-r--r--sc/source/ui/view/viewfun2.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index eeddce788b50..3bd854324124 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -1836,7 +1836,8 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
AlignToCursor( nCol, nRow, SC_FOLLOW_JUMP );
SetCursor( nCol, nRow, true );
- if (rDoc.GetDrawLayer()->isTiledRendering())
+ // Don't move cell selection handles for find-all: selection of all but the first result would be lost.
+ if (rDoc.GetDrawLayer()->isTiledRendering() && nCommand == SvxSearchCmd::FIND)
{
Point aCurPos = GetViewData().GetScrPos(nCol, nRow, GetViewData().GetActivePart());