X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8db37e069996bf60cbc152eb8d93b199e7c80842..718903fe6402bb374a801e43e856b02204401204:/src/common/fddlgcmn.cpp diff --git a/src/common/fddlgcmn.cpp b/src/common/fddlgcmn.cpp index 17494e1759..20e18060a6 100644 --- a/src/common/fddlgcmn.cpp +++ b/src/common/fddlgcmn.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "fdrepdlg.h" #endif @@ -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(); }