[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Thu Jun 6 21:47:48 PDT 2013
sc/source/ui/view/viewfun2.cxx | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
New commits:
commit 62d85cfc679f90cd2c65d1ea5493026324875f46
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Fri Jun 7 06:41:14 2013 +0200
only reset marked area when using find/replace all, fdo#53106
Change-Id: I151db5db7bcdf5295e1f67423de8926250ae8ea3
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 0b6f48c..a042d0d 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -1655,12 +1655,15 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
aUndoStr, pUndoDoc.release(), pSearchItem ) );
}
- rMark.ResetMark();
- for (size_t i = 0, n = aMatchedRanges.size(); i < n; ++i)
+ if (nCommand == SVX_SEARCHCMD_FIND_ALL || nCommand == SVX_SEARCHCMD_REPLACE_ALL)
{
- const ScRange& r = *aMatchedRanges[i];
- if (r.aStart.Tab() == nTab)
- rMark.SetMultiMarkArea(r);
+ rMark.ResetMark();
+ for (size_t i = 0, n = aMatchedRanges.size(); i < n; ++i)
+ {
+ const ScRange& r = *aMatchedRanges[i];
+ if (r.aStart.Tab() == nTab)
+ rMark.SetMultiMarkArea(r);
+ }
}
break; // break 'while (TRUE)'
More information about the Libreoffice-commits
mailing list