[Libreoffice-commits] .: sd/source
Radek DoulÃk
rodo at kemper.freedesktop.org
Thu Jun 28 01:40:57 PDT 2012
sd/source/ui/view/Outliner.cxx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit ca644612762921e772ca95d5e8737325d9f343d2
Author: Radek Doulik <rodo at novell.com>
Date: Tue Jun 26 12:25:03 2012 +0200
remember spell check/find&replace start position only 1st time
- use mnStartPageIndex as indicator, -1 means it wasn't set yet
otherwise it is set. reset it to -1 at the end of spell check
and find&replace
Change-Id: Ic45106b019d3c1a0232fe3d766aab07bbcd24d2c
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index e7100e7..43aa502 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -381,6 +381,7 @@ void Outliner::EndSpelling (void)
mpWeakViewShell.reset();
mpView = NULL;
mpWindow = NULL;
+ mnStartPageIndex = (sal_uInt16) -1;
}
@@ -531,8 +532,7 @@ bool Outliner::StartSearchAndReplace (const SvxSearchItem* pSearchItem)
// restore start position if nothing was found
if(!mbStringFound)
RestoreStartPosition ();
- else
- mnStartPageIndex = (sal_uInt16)-1;
+ mnStartPageIndex = (sal_uInt16)-1;
}
}
else
@@ -657,6 +657,7 @@ bool Outliner::SearchAndReplaceAll (void)
}
RestoreStartPosition ();
+ mnStartPageIndex = (sal_uInt16)-1;
return true;
}
@@ -870,6 +871,9 @@ void Outliner::RememberStartPosition (void)
return;
}
+ if ( mnStartPageIndex != (sal_uInt16) -1 )
+ return;
+
if (pViewShell->ISA(DrawViewShell))
{
::boost::shared_ptr<DrawViewShell> pDrawViewShell (
More information about the Libreoffice-commits
mailing list