From 620e4af500cd79d30598dbab8c7b356fc18a4e62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Wed, 14 Jul 2004 19:34:34 +0000 Subject: [PATCH] DMC/VC warning fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/configtool/src/configtree.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/configtool/src/configtree.cpp b/utils/configtool/src/configtree.cpp index 28e32bddb4..942457bbbe 100644 --- a/utils/configtool/src/configtree.cpp +++ b/utils/configtool/src/configtree.cpp @@ -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")); -- 2.45.2