// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
- #pragma implementation "fdrepdlg.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
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();
}