Use conditional operator instead of conditional statement
This notation is more intuitive in this context.
This commit is contained in:
parent
bdc9d8f772
commit
96e24e73d6
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user