From 40a04218f4ce36bb79db3bbbe64f603b980613a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Mon, 21 Nov 2016 17:58:42 +0100 Subject: [PATCH] Don't remove bgcolor in selected markup in wxOSX It does more harm than good: if an item uses background colors in the markup, it stands to reason it's important and simply eliminating it would result in confusing rendering. The decision how to best handle background color in selection is application-specific. --- src/osx/cocoa/dataview.mm | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osx/cocoa/dataview.mm b/src/osx/cocoa/dataview.mm index c0a138a18d..5eb81a5284 100644 --- a/src/osx/cocoa/dataview.mm +++ b/src/osx/cocoa/dataview.mm @@ -2948,7 +2948,6 @@ bool wxDataViewTextRenderer::MacRender() if ( [cell backgroundStyle] == NSBackgroundStyleDark ) { [str removeAttribute:NSForegroundColorAttributeName range:NSMakeRange(0, [str length])]; - [str removeAttribute:NSBackgroundColorAttributeName range:NSMakeRange(0, [str length])]; } [cell setAttributedStringValue:str];