sd/source/ui/view/Outliner.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
New commits: commit e275f2c6808abe9f0bd9c720dee801a887198270 Author: Jan Holesovsky <ke...@collabora.com> Date: Thu May 28 14:31:36 2015 +0200 lok search sd: Off-by-one; and send the page only when it changed. Change-Id: Ifc56c7771bfdf75531a0c5153cbcbb5c36f051b7 diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index da24d0e..feebd92d 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits