From: Vadim Zeitlin Date: Thu, 20 Sep 2007 10:22:09 +0000 (+0000) Subject: added missing wxUSE_RICHEDIT test X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1a8e8d694bdcaec228f59a55f2aca1dfea0679db added missing wxUSE_RICHEDIT test git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 9dc6104f23..7218b339f2 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -298,13 +298,13 @@ void wxTextCtrl::Init() wxTextCtrl::~wxTextCtrl() { -#if wxUSE_DRAG_AND_DROP +#if wxUSE_DRAG_AND_DROP && wxUSE_RICHEDIT if ( m_dropTarget == wxRICHTEXT_DEFAULT_DROPTARGET ) { // don't try to destroy this dummy pointer in the base class dtor m_dropTarget = NULL; } -#endif // wxUSE_DRAG_AND_DROP +#endif // wxUSE_DRAG_AND_DROP && wxUSE_RICHEDIT delete m_privateContextMenu; }