From d255dc6706c28862b5f67148bace2d4cc0388b0f Mon Sep 17 00:00:00 2001 From: Troels Knakkergaard Date: Mon, 25 Apr 2016 12:08:28 +0200 Subject: [PATCH] Do not set wxUnknownControlContainer background to a fixed color Don't explicitly set the background colour if it's not specified. Closes #17675. --- src/xrc/xh_unkwn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrc/xh_unkwn.cpp b/src/xrc/xh_unkwn.cpp index ee398ec8dd..83b1471700 100644 --- a/src/xrc/xh_unkwn.cpp +++ b/src/xrc/xh_unkwn.cpp @@ -41,7 +41,7 @@ public: m_controlName(controlName), m_control(NULL) { - m_bg = GetBackgroundColour(); + m_bg = UseBgCol() ? GetBackgroundColour() : wxColour(); SetBackgroundColour(wxColour(255, 0, 255)); }