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:
Vadim Zeitlin
2003-05-01 19:35:47 +00:00
parent 8ab40c5227
commit e9c8005b47

View File

@@ -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();
}