X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/502a2b1810943f9a446a16e73ef780321eb69a06..cf31a1d7b60feddf23cc30259c6d909d4736ca56:/src/msw/treectrl.cpp diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index b5612512f6..3ebf19f9e2 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -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