Don't use wxPropertyGridPageState::DoSetSplitterPosition()

It is deprecated, so call DoSetSplitter() directly instead.
This commit is contained in:
Vadim Zeitlin 2023-10-31 03:39:03 +01:00
parent b0e3cf83c9
commit 208640870b

View file

@ -227,7 +227,7 @@ wxObject *wxPropertyGridXmlHandler::DoCreateResource()
wxString s = node->GetNodeContent(); wxString s = node->GetNodeContent();
long pos; long pos;
if ( wxPropertyGridPopulator::ToLongPCT(s, &pos, m_pg->GetClientSize().x) ) if ( wxPropertyGridPopulator::ToLongPCT(s, &pos, m_pg->GetClientSize().x) )
m_populator->GetState()->DoSetSplitterPosition( pos, index, false ); m_populator->GetState()->DoSetSplitter( pos, index );
} }
else if ( nodeName == wxT("page") ) else if ( nodeName == wxT("page") )
{ {