only set replace string for replace events (patch 728415)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -74,7 +74,9 @@ void wxFindReplaceDialogBase::Send(wxFindDialogEvent& event)
|
||||
|
||||
m_FindReplaceData->m_Flags = event.GetFlags();
|
||||
m_FindReplaceData->m_FindWhat = event.GetFindString();
|
||||
if ( HasFlag(wxFR_REPLACEDIALOG) )
|
||||
if ( HasFlag(wxFR_REPLACEDIALOG) &&
|
||||
(event.GetEventType() == wxEVT_COMMAND_FIND_REPLACE ||
|
||||
event.GetEventType() == wxEVT_COMMAND_FIND_REPLACE_ALL) )
|
||||
{
|
||||
m_FindReplaceData->m_ReplaceWith = event.GetReplaceString();
|
||||
}
|
||||
|
Reference in New Issue
Block a user