Parse "virtualwidth" as dimension, not a simple number

This allows to scale it properly depending on DPI and also to express it
in dialog units.
This commit is contained in:
Vadim Zeitlin 2023-10-31 03:58:50 +01:00
parent 336a36e618
commit 29c64c0c1e

View file

@ -102,8 +102,7 @@ void wxPropertyGridXmlHandler::HandlePropertyGridParams()
wxString sVW(wxT("virtualwidth"));
if ( HasParam(sVW) )
{
int vw = GetLong(sVW);
m_pg->SetVirtualWidth(vw);
m_pg->SetVirtualWidth(GetDimension(sVW));
}
}