From 72d308703cdbaeb39835cc16256faf2710b48c5c Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Sun, 31 May 2015 08:31:08 +0200 Subject: 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 --- sd/source/ui/view/Outliner.cxx | 8 ++------ 1 file 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; -- cgit