From 034684d47638daa31555bb9120406242b5c91d1a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 24 Oct 2015 15:16:05 +0200 Subject: [PATCH] Initialize wxAuiNotebookXmlHandler::m_isInside in ctor See #15694. Closes #17222. (this is a backport of 7439c0951b1147ad3f647a2e8358443e65bcdb1f from master) --- docs/changes.txt | 1 + src/xrc/xh_auinotbk.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index a7bd2fd21b..1797e310ff 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -604,6 +604,7 @@ All (GUI): - Fix bug in wxImage::ClearAlpha() for shared data (Markus Rollmann). - Accept wxALIGN_CENTRE_HORIZONTAL in wxStaticText XRC handler (David Hart). - Fix appearance after updating a wxGrid with hidden rows/columns (iwbnwif). +- Make wxAuiNotebookXmlHandler actually work. wxGTK: diff --git a/src/xrc/xh_auinotbk.cpp b/src/xrc/xh_auinotbk.cpp index 2035787291..df7498394f 100644 --- a/src/xrc/xh_auinotbk.cpp +++ b/src/xrc/xh_auinotbk.cpp @@ -22,7 +22,8 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxAuiNotebookXmlHandler, wxXmlResourceHandler); wxAuiNotebookXmlHandler::wxAuiNotebookXmlHandler() - : wxXmlResourceHandler() + : wxXmlResourceHandler(), + m_isInside(false) { XRC_ADD_STYLE(wxAUI_NB_DEFAULT_STYLE); XRC_ADD_STYLE(wxAUI_NB_TAB_SPLIT);