]> git.saurik.com Git - wxWidgets.git/commitdiff
added missing wxUSE_RICHEDIT test
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Sep 2007 10:22:09 +0000 (10:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Sep 2007 10:22:09 +0000 (10:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index 9dc6104f2392e5599a456f0ae5e9f33b2ab2ff01..7218b339f28ffd8134854c5fcea875219cafff7c 100644 (file)
@@ -298,13 +298,13 @@ void wxTextCtrl::Init()
 
 wxTextCtrl::~wxTextCtrl()
 {
 
 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;
     }
     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;
 }
 
     delete m_privateContextMenu;
 }