From 4bd51b7049b3cf9f0c81676bd0232e0fca2b9da3 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 29 Sep 2017 17:06:40 +0200 Subject: [PATCH] Fixed EDA_BASE_FRAME::removePaneBorder() for classes not using AUI Fixes: lp:1720386 * https://bugs.launchpad.net/kicad/+bug/1720386 Fixes: lp:1720388 * https://bugs.launchpad.net/kicad/+bug/1720388 Fixes: lp:1720389 * https://bugs.launchpad.net/kicad/+bug/1720389 --- common/basicframe.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/basicframe.cpp b/common/basicframe.cpp index 46a964e470..5b329783c6 100644 --- a/common/basicframe.cpp +++ b/common/basicframe.cpp @@ -158,6 +158,10 @@ void EDA_BASE_FRAME::windowClosing( wxCloseEvent& event ) void EDA_BASE_FRAME::removePaneBorder( wxShowEvent& event ) { + // nothing to be set + if( !m_auimgr.GetManagedWindow() ) + return; + // remove the ugly 1-pixel white border on AUI panes wxAuiPaneInfoArray panes = m_auimgr.GetAllPanes();