[Libreoffice-commits] core.git: sd/source
Jan Holesovsky
kendy at collabora.com
Thu May 28 05:33:06 PDT 2015
sd/source/ui/view/Outliner.cxx | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
New commits:
commit 090ad6b02c84e04642dbcd53ddd3a079b0d17471
Author: Jan Holesovsky <kendy at 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;
More information about the Libreoffice-commits
mailing list