Call virtual ctrl->GetDefaultAttributes() instead of static GetClassDefaultAttributes()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
683d4e0f8b
commit
22909aef2d
@ -262,7 +262,10 @@ void wxPGEditor::SetControlAppearance( wxPropertyGrid* pg,
|
||||
}
|
||||
}
|
||||
|
||||
wxVisualAttributes vattrs = ctrl->GetClassDefaultAttributes();
|
||||
// Do not make the mistake of calling GetClassDefaultAttributes()
|
||||
// here. It is static, while GetDefaultAttributes() is virtual
|
||||
// and the correct one to use.
|
||||
wxVisualAttributes vattrs = ctrl->GetDefaultAttributes();
|
||||
|
||||
// Foreground colour
|
||||
const wxColour& fgCol = cell.GetFgCol();
|
||||
|
Loading…
Reference in New Issue
Block a user