Use conditional operator instead of conditional statement
This notation is more intuitive in this context.
This commit is contained in:
@@ -948,10 +948,7 @@ void wxSystemColourProperty::Init( int type, const wxColour& colour )
|
|||||||
{
|
{
|
||||||
wxColourPropertyValue cpv;
|
wxColourPropertyValue cpv;
|
||||||
|
|
||||||
if ( colour.IsOk() )
|
cpv.Init(type, colour.IsOk() ? colour : *wxWHITE);
|
||||||
cpv.Init( type, colour );
|
|
||||||
else
|
|
||||||
cpv.Init( type, *wxWHITE );
|
|
||||||
|
|
||||||
m_flags |= wxPG_PROP_STATIC_CHOICES; // Colour selection cannot be changed.
|
m_flags |= wxPG_PROP_STATIC_CHOICES; // Colour selection cannot be changed.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user