]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/configtool/src/configtree.cpp
reSWIGged
[wxWidgets.git] / utils / configtool / src / configtree.cpp
index 28e32bddb45af5a79eabcde46a0cac3fdd171d96..7623146bb8f508853208b4ea42475a1e86a3a6d4 100644 (file)
 #pragma implementation "configtree.h"
 #endif
 
-// Includes other headers for precompiled compilation
-#include "wx/wx.h"
+// For compilers that support precompilation, includes "wx/wx.h".
+#include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
 #pragma hdrstop
 #endif
 
-#include "wx/imaglist.h"
 #include "wx/cshelp.h"
+#include "wx/imaglist.h"
 
 // Include XPM icons
 #include "bitmaps/closedfolder.xpm"
@@ -202,10 +202,11 @@ void ctConfigTreeCtrl::OnHelp(wxHelpEvent& event)
     wxPoint pt = ScreenToClient(event.GetPosition());
     int flags = 0;
     wxTreeItemId id = HitTest(pt, flags);
+    ctTreeItemData *itemData = (ctTreeItemData*) GetItemData(id);
     wxHelpProvider *helpProvider = wxHelpProvider::Get();
-    if ( helpProvider && id > 0)
+    if ( helpProvider && itemData)
     {
-        ctConfigItem* item = ((ctTreeItemData*) GetItemData(id))->GetConfigItem();
+        ctConfigItem* item = itemData->GetConfigItem();
         if (item)
         {
             wxString helpTopic = item->GetPropertyString(wxT("help-topic"));