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

@@ -1409,6 +1409,7 @@ void wxPropertyGridManager::OnPaint( wxPaintEvent& WXUNUSED(event) )
if ( HasExtraStyle(wxPG_EX_TOOLBAR_SEPARATOR) )
{
#if wxUSE_TOOLBAR
if (m_pToolbar && m_pPropGrid)
{
wxPen marginPen(m_pPropGrid->GetMarginColour());
@@ -1417,6 +1418,7 @@ void wxPropertyGridManager::OnPaint( wxPaintEvent& WXUNUSED(event) )
int y = m_pPropGrid->GetPosition().y-1;
dc.DrawLine(0, y, GetClientSize().x, y);
}
#endif // wxUSE_TOOLBAR
}
// Repaint splitter and any other description box decorations