From 9b974b5dd1c31af4f675190772dce154d8cdce30 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Thu, 9 Jan 2020 00:46:48 +0000 Subject: [PATCH] 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 --- src/osx/cocoa/dataview.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/cocoa/dataview.mm b/src/osx/cocoa/dataview.mm index 7041b5bcd1..20be69570b 100644 --- a/src/osx/cocoa/dataview.mm +++ b/src/osx/cocoa/dataview.mm @@ -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(); }