Bug #2784140 Find & Replace insert text when nothing was found
This commit is contained in:
parent
5ad9659c19
commit
5894e44ac2
|
@ -1861,6 +1861,8 @@ void MyFrame::OnDialogReplace ( wxFindDialogEvent& event )
|
|||
if ( ( doc = getActiveDocument() ) == NULL )
|
||||
return;
|
||||
|
||||
if ( !doc->GetSelectedText().IsEmpty() )
|
||||
{
|
||||
int regexWidth = 0;
|
||||
if ( findReplacePanel->getRegex() )
|
||||
{
|
||||
|
@ -1870,6 +1872,7 @@ void MyFrame::OnDialogReplace ( wxFindDialogEvent& event )
|
|||
{
|
||||
doc->ReplaceTarget ( event.GetReplaceString() );
|
||||
}
|
||||
}
|
||||
OnDialogFind ( event );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue