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:
parent
1c9819e417
commit
620e4af500
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user