]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for the last commit: reset the dummy wxRICHTEXT_DEFAULT_DROPTARGET pointer in...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Sep 2007 12:06:46 +0000 (12:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Sep 2007 12:06:46 +0000 (12:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index c40ef670da9f22893cce2e2d6bbe1774cce2d24b..9dc6104f2392e5599a456f0ae5e9f33b2ab2ff01 100644 (file)
@@ -298,6 +298,14 @@ void wxTextCtrl::Init()
 
 wxTextCtrl::~wxTextCtrl()
 {
+#if wxUSE_DRAG_AND_DROP
+    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
+
     delete m_privateContextMenu;
 }