Kaydet (Commit) 65c45688 authored tarafından Joren De Cuyper's avatar Joren De Cuyper Kaydeden (comit) Jan Holesovsky

fdo#51615 replace button in Find&Replace Dialog not search for the next item

Change-Id: Ia1735ae39618fb8b0e4749e1970adfe83192f755
Reviewed-on: https://gerrit.libreoffice.org/3197Reviewed-by: 's avatarJan Holesovsky <kendy@suse.cz>
Tested-by: 's avatarJan Holesovsky <kendy@suse.cz>
üst 1a14d956
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment