diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-15 10:06:33 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-15 10:37:31 +0100 |
commit | 61161254ab880f02a7a26822d45ff96ec7ca76c3 (patch) | |
tree | 8d7b565bef0bf0f8648d246c8aaf406cb1b832dc /sc | |
parent | 79fa9bb77c702571de753c739e257ff6c27071ca (diff) |
sc tiled rendering: it's pointless to send selection changes during search all
Change-Id: I787cd1760bca0bf7fbc3132579b569882ec25ae2
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index 3beb225e8f9d..e88e5da8ba25 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -1820,7 +1820,10 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, } } + // Avoid LOK selection notifications before we have all the results. + rDoc.GetDrawLayer()->setTiledSearching(true); MarkDataChanged(); + rDoc.GetDrawLayer()->setTiledSearching(false); if ( bFound ) { @@ -1872,6 +1875,9 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, boost::property_tree::write_json(aStream, aTree); OString aPayload = aStream.str().c_str(); rDoc.GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_SEARCH_RESULT_SELECTION, aPayload.getStr()); + + // Trigger LOK_CALLBACK_TEXT_SELECTION now. + MarkDataChanged(); } } |