X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/502a2b1810943f9a446a16e73ef780321eb69a06..9d4ca3aa8f594848a8f68140b25ec86549e12e98:/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