// Licence:
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#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"
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"));