Fix error in OSX dataview attribute setting
Fix saving background colour of the cell before changing it. Closes https://github.com/wxWidgets/wxWidgets/pull/1699
This commit is contained in:
committed by
Vadim Zeitlin
parent
bb14c5f69b
commit
9b974b5dd1
@@ -2922,7 +2922,7 @@ void wxDataViewRenderer::SetAttr(const wxDataViewItemAttr& attr)
|
|||||||
[cell respondsToSelector:@selector(backgroundColor)] )
|
[cell respondsToSelector:@selector(backgroundColor)] )
|
||||||
{
|
{
|
||||||
if ( !data->GetOriginalBackgroundColour() )
|
if ( !data->GetOriginalBackgroundColour() )
|
||||||
data->SaveOriginalTextColour([(id)cell backgroundColor]);
|
data->SaveOriginalBackgroundColour([(id)cell backgroundColor]);
|
||||||
|
|
||||||
colBack = attr.GetBackgroundColour().OSXGetNSColor();
|
colBack = attr.GetBackgroundColour().OSXGetNSColor();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user