Don't call obsolete function in wxPropertyGridManager

wxPropertyGridPageState::GetColumnFitWidth(wxDC&, ...) is not available
when WXWIN_COMPATIBILITY_3_0 is not set.
This commit is contained in:
Artur Wieczorek
2022-05-30 19:51:54 +02:00
parent b72a742b21
commit 2dfe57419a

View File

@@ -2072,7 +2072,7 @@ void wxPropertyGridManager::SetSplitterLeft( bool subProps, bool allPages )
for ( size_t i = 0; i < GetPageCount(); i++ )
{
int maxW = m_pState->GetColumnFitWidth(dc, m_arrPages[i]->DoGetRoot(), 0, subProps );
int maxW = m_pState->GetColumnFitWidth(m_arrPages[i]->DoGetRoot(), 0, subProps );
maxW += m_pPropGrid->GetMarginWidth();
if ( maxW > highest )
highest = maxW;