Fixed old font-related code that caused problems on wxMAC, also replaced all accesses to m_font with GetFont()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -863,7 +863,7 @@ void wxPropertyGridPageState::SetSplitterLeft( bool subProps )
|
||||
{
|
||||
wxPropertyGrid* pg = GetGrid();
|
||||
wxClientDC dc(pg);
|
||||
dc.SetFont(pg->m_font);
|
||||
dc.SetFont(pg->GetFont());
|
||||
|
||||
int maxW = GetColumnFitWidth(dc, m_properties, 0, subProps);
|
||||
|
||||
@@ -880,7 +880,7 @@ wxSize wxPropertyGridPageState::DoFitColumns( bool WXUNUSED(allowGridResize) )
|
||||
{
|
||||
wxPropertyGrid* pg = GetGrid();
|
||||
wxClientDC dc(pg);
|
||||
dc.SetFont(pg->m_font);
|
||||
dc.SetFont(pg->GetFont());
|
||||
|
||||
int marginWidth = pg->m_marginWidth;
|
||||
int accWid = marginWidth;
|
||||
|
Reference in New Issue
Block a user