diff --git a/src/propgrid/advprops.cpp b/src/propgrid/advprops.cpp index b1956d974f..2446b117f3 100644 --- a/src/propgrid/advprops.cpp +++ b/src/propgrid/advprops.cpp @@ -948,10 +948,7 @@ void wxSystemColourProperty::Init( int type, const wxColour& colour ) { wxColourPropertyValue cpv; - if ( colour.IsOk() ) - cpv.Init( type, colour ); - else - cpv.Init( type, *wxWHITE ); + cpv.Init(type, colour.IsOk() ? colour : *wxWHITE); m_flags |= wxPG_PROP_STATIC_CHOICES; // Colour selection cannot be changed.