Fix wxPropertyGrid compilation when wxUSE_TOOLBAR==0

Don't use toolbar associated with wxPG in this case.
This commit is contained in:
Artur Wieczorek
2016-02-25 21:37:26 +01:00
parent 1e7121c776
commit 85bad08373
2 changed files with 4 additions and 0 deletions

View File

@@ -459,9 +459,11 @@ public:
return m_pPropGrid->GetSelection();
}
#if wxUSE_TOOLBAR
/** Returns a pointer to the toolbar currently associated with the
wxPropertyGridManager (if any). */
wxToolBar* GetToolBar() const { return m_pToolbar; }
#endif // wxUSE_TOOLBAR
/** Creates new property page. Note that the first page is not created
automatically.