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:
Ian McInerney
2020-01-09 00:46:48 +00:00
committed by Vadim Zeitlin
parent bb14c5f69b
commit 9b974b5dd1

View File

@@ -2922,7 +2922,7 @@ void wxDataViewRenderer::SetAttr(const wxDataViewItemAttr& attr)
[cell respondsToSelector:@selector(backgroundColor)] )
{
if ( !data->GetOriginalBackgroundColour() )
data->SaveOriginalTextColour([(id)cell backgroundColor]);
data->SaveOriginalBackgroundColour([(id)cell backgroundColor]);
colBack = attr.GetBackgroundColour().OSXGetNSColor();
}