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:
Jaakko Salli 2010-01-05 16:42:35 +00:00
parent 683d4e0f8b
commit 22909aef2d

View File

@ -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();