summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoren De Cuyper <joren.libreoffice@telenet.be>2013-04-03 23:58:45 +0200
committerJan Holesovsky <kendy@suse.cz>2013-04-10 13:24:36 +0000
commit65c45688caba3213ce161013f5f2b1f753f7eecf (patch)
treeb10985ace7ed282f2ee2d736848998868c996d7c
parent1a14d95627b5ea66822485f102c3b9e942d64d82 (diff)
fdo#51615 replace button in Find&Replace Dialog not search for the next item
Change-Id: Ia1735ae39618fb8b0e4749e1970adfe83192f755 Reviewed-on: https://gerrit.libreoffice.org/3197 Reviewed-by: Jan Holesovsky <kendy@suse.cz> Tested-by: Jan Holesovsky <kendy@suse.cz>
-rw-r--r--sc/source/ui/view/viewfun2.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index cb881d2882b1..1e01df5fb262 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -1767,7 +1767,13 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
|| nCommand == SVX_SEARCHCMD_REPLACE_ALL )
{
if ( nCommand == SVX_SEARCHCMD_REPLACE )
+ {
pDocSh->PostPaint( nCol,nRow,nTab, nCol,nRow,nTab, PAINT_GRID );
+ SvxSearchItem aSearchItem = ScGlobal::GetSearchItem();
+ aSearchItem.SetCommand(SVX_SEARCHCMD_FIND);
+ aSearchItem.SetWhich(SID_SEARCH_ITEM);
+ GetViewData()->GetDispatcher().Execute( FID_SEARCH_NOW, SFX_CALLMODE_STANDARD, &aSearchItem, 0L );
+ }
else
pDocSh->PostPaintGridAll();
pDocSh->SetDocumentModified();