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