projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00cecce
)
fix for the last commit: reset the dummy wxRICHTEXT_DEFAULT_DROPTARGET pointer in...
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Tue, 18 Sep 2007 12:06:46 +0000
(12:06 +0000)
committer
Vadim 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
patch
|
blob
|
blame
|
history
diff --git
a/src/msw/textctrl.cpp
b/src/msw/textctrl.cpp
index c40ef670da9f22893cce2e2d6bbe1774cce2d24b..9dc6104f2392e5599a456f0ae5e9f33b2ab2ff01 100644
(file)
--- a/
src/msw/textctrl.cpp
+++ b/
src/msw/textctrl.cpp
@@
-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;
}