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;