DMC/VC warning fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2004-07-14 19:34:34 +00:00
parent 1c9819e417
commit 620e4af500

View File

@ -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"));