Kaydet (Commit) 9d1b2de2 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

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
üst a6bede68
......@@ -721,14 +721,8 @@ bool Outliner::SearchAndReplaceOnce()
if (pViewShell && pViewShell->GetDoc()->isTiledRendering() &&
mbStringFound && pViewShell->ISA(DrawViewShell))
{
::boost::shared_ptr<DrawViewShell> pDrawViewShell(::boost::dynamic_pointer_cast<DrawViewShell>(pViewShell));
sal_uInt16 nSelectedPage = pDrawViewShell->GetCurPageId() - 1;
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment