Colour property with attribute wxPG_COLOUR_ALLOW_CUSTOM = false did not render correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9038fc94a7
commit
a4c605ce97
@ -1306,8 +1306,10 @@ void wxSystemColourProperty::OnCustomPaint( wxDC& dc, const wxRect& rect,
|
||||
{
|
||||
wxColour col;
|
||||
|
||||
if ( paintdata.m_choiceItem >= 0 && paintdata.m_choiceItem < (int)m_choices.GetCount() &&
|
||||
paintdata.m_choiceItem != GetCustomColourIndex() )
|
||||
if ( paintdata.m_choiceItem >= 0 &&
|
||||
paintdata.m_choiceItem < (int)m_choices.GetCount() &&
|
||||
(paintdata.m_choiceItem != GetCustomColourIndex() ||
|
||||
m_flags & wxPG_PROP_HIDE_CUSTOM_COLOUR) )
|
||||
{
|
||||
int colInd = m_choices[paintdata.m_choiceItem].GetValue();
|
||||
col = GetColour( colInd );
|
||||
|
Loading…
Reference in New Issue
Block a user