Patch #2041 2007-06-08 20:45

raph_

wxSmith: wxsItemResData doesn't store tool children ids fix
Download
2041-wxSmith_wxsIte.patch (480 bytes)
Category
Plugin::Bugfix
Status
Accepted
Close date
2007-06-09 14:21
Assigned to
 
Index: src/plugins/contrib/wxSmith/wxwidgets/wxsitemresdata.cpp
===================================================================
--- src/plugins/contrib/wxSmith/wxwidgets/wxsitemresdata.cpp    (revision 4078)
+++ src/plugins/contrib/wxSmith/wxwidgets/wxsitemresdata.cpp    (working copy)
@@ -1481,7 +1481,7 @@
     }
     for ( int i=0; i<GetToolsCount(); i++ )
     {
-        m_IdMap[m_Tools[i]] = m_Tools[i]->GetLastTreeItemId();
+        StoreTreeIdsReq(m_Tools[i]);
     }
 }
 
raph_ 2007-06-08 20:52

I tracked down this bug, when I noticed, that updating a menu or menuitem's label within a menubar didn't make the name in resourcetree update immediately.

wxsItemResData::GetTreeId failed, because m_IdMap didn't contain the ids of the items.

This bug may have some other side effects I didn't recognize yet.

Regards

raph