]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed handling of the items with indirect data broken yesterday
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Dec 2001 13:38:23 +0000 (13:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Dec 2001 13:38:23 +0000 (13:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/treectrl.cpp

index b5612512f62b0dbc933765f80af0aad6d1090002..3ebf19f9e28a475ede3236af7111edd89cc44e5e 100644 (file)
@@ -423,6 +423,9 @@ public:
 
         // and set ourselves as the new one
         tree->SetIndirectItemData(item, this);
+
+        // we must have the invalid value for the item
+        m_pItem = 0l;
     }
 
     // dtor deletes the associated data as well