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:
parent
336a36e618
commit
29c64c0c1e
1 changed files with 1 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue