summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-05-31 08:31:08 +0200
committerJan Holesovsky <kendy@collabora.com>2015-05-31 08:33:08 +0200
commit72d308703cdbaeb39835cc16256faf2710b48c5c (patch)
tree7f1805b49d3b1e82b39fff036783c7eb082ed687
parentb33972b61401da79aadbb98d486eec5c285b5946 (diff)
sd lok: Send the part number when search always.
The protocol is stateless, the client might have switched to another part, and we wouldn't know. Change-Id: I1b785d94c9fac86a124d72dd9ea9b35b839a39b8
-rw-r--r--sd/source/ui/view/Outliner.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index a92766d05054..3e50e513a3ef 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -723,12 +723,8 @@ bool Outliner::SearchAndReplaceOnce()
// notify LibreOfficeKit about changed page
if (pViewShell && pViewShell->GetDoc()->isTiledRendering() && mbStringFound)
{
- sal_uInt16 nSelectedPage = maCurrentPosition.mnPageIndex;
- if (nSelectedPage != mnStartPageIndex)
- {
- OString aPayload = OString::number(nSelectedPage);
- pViewShell->GetDoc()->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr());
- }
+ OString aPayload = OString::number(maCurrentPosition.mnPageIndex);
+ pViewShell->GetDoc()->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr());
}
return mbEndOfSearch;