diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index a0298fc790..8607c44f28 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -262,7 +262,7 @@ void wxPGEditor::SetControlAppearance( wxPropertyGrid* pg, } } - wxVisualAttributes vattrs = ctrl->GetDefaultAttributes(); + wxVisualAttributes vattrs = ctrl->GetClassDefaultAttributes(); // Foreground colour const wxColour& fgCol = cell.GetFgCol();