[Libreoffice-commits] core.git: sd/source

Jan Holesovsky kendy at collabora.com
Sat May 30 23:33:37 PDT 2015


 sd/source/ui/view/Outliner.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 72d308703cdbaeb39835cc16256faf2710b48c5c
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Sun May 31 08:31:08 2015 +0200

    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

diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index a92766d..3e50e51 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;


More information about the Libreoffice-commits mailing list