From 104b8461d86239e496a061b88ef94c8cff4bb5a3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 19 Mar 2022 22:36:21 +0100 Subject: [PATCH] Remove premature wxAuiNotebook::m_tabCtrlHeight initialization FromDIP() shouldn't be used before the window is created and m_tabCtrlHeight was already initialized correctly in InitNotebook(), when it can be used, so simply remove this premature and redundant initialization. --- src/aui/auibook.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 55f63f6bd8..b85247c60f 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -1713,7 +1713,6 @@ void wxAuiNotebook::Init() m_curPage = -1; m_tabIdCounter = wxAuiBaseTabCtrlId; m_dummyWnd = NULL; - m_tabCtrlHeight = FromDIP(20); m_requestedBmpSize = wxDefaultSize; m_requestedTabCtrlHeight = -1; }