Kaydet (Commit) df34ab57 authored tarafından Miklos Vajna's avatar Miklos Vajna

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
(cherry picked from commit a31f95b1)
üst 5ade4867
...@@ -1837,7 +1837,8 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, ...@@ -1837,7 +1837,8 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
AlignToCursor( nCol, nRow, SC_FOLLOW_JUMP ); AlignToCursor( nCol, nRow, SC_FOLLOW_JUMP );
SetCursor( nCol, nRow, true ); 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()); Point aCurPos = GetViewData().GetScrPos(nCol, nRow, GetViewData().GetActivePart());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment