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

lok search sd: Off-by-one; and send the page only when it changed.

Change-Id: Ifc56c7771bfdf75531a0c5153cbcbb5c36f051b7
üst a1187a32
......@@ -723,9 +723,12 @@ bool Outliner::SearchAndReplaceOnce()
{
::boost::shared_ptr<DrawViewShell> pDrawViewShell(::boost::dynamic_pointer_cast<DrawViewShell>(pViewShell));
sal_uInt16 nSelectedPage = pDrawViewShell->GetCurPageId();
OString aPayload = OString::number(nSelectedPage);
pViewShell->GetDoc()->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr());
sal_uInt16 nSelectedPage = pDrawViewShell->GetCurPageId() - 1;
if (nSelectedPage != mnStartPageIndex)
{
OString aPayload = OString::number(nSelectedPage);
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