]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/toolbar.cpp
drawing optimization fix
[wxWidgets.git] / src / motif / toolbar.cpp
index 451b10f774b733d405c075514fac75003482ff0f..071f4f030b5816b427d309ebd82c249a4645ee44 100644 (file)
@@ -616,7 +616,7 @@ int wxToolBar::FindIndexForWidget(WXWidget w)
     {
         WXWidget widget = (WXWidget) node->Data();
         if (widget == w)
-            return (int) node->key.integer;
+            return (int) node->GetKeyInteger();
         node = node->Next();
     }
     return -1;