[Libreoffice-commits] core.git: sc/source

Joren De Cuyper joren.libreoffice at telenet.be
Wed Apr 10 06:24:55 PDT 2013


 sc/source/ui/view/viewfun2.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 65c45688caba3213ce161013f5f2b1f753f7eecf
Author: Joren De Cuyper <joren.libreoffice at telenet.be>
Date:   Wed Apr 3 23:58:45 2013 +0200

    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 at suse.cz>
    Tested-by: Jan Holesovsky <kendy at suse.cz>

diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index cb881d2..1e01df5 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();


More information about the Libreoffice-commits mailing list