From ab439fcdee3842951256b81ce126a9825246955c Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Fri, 11 Oct 2019 15:01:21 -0700 Subject: [PATCH] Updated to fix formatting style for multi-line `if`. --- src/aui/tabart.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/aui/tabart.cpp b/src/aui/tabart.cpp index 4891388d43..ac17452965 100644 --- a/src/aui/tabart.cpp +++ b/src/aui/tabart.cpp @@ -643,7 +643,7 @@ int wxAuiGenericTabArt::GetBorderWidth(wxWindow* wnd) wxAuiManager* mgr = wxAuiManager::GetManager(wnd); if (mgr) { - wxAuiDockArt* art = mgr->GetArtProvider(); + wxAuiDockArt* art = mgr->GetArtProvider(); if (art) return art->GetMetric(wxAUI_DOCKART_PANE_BORDER_SIZE); } @@ -676,8 +676,10 @@ wxSize wxAuiGenericTabArt::GetTabSize(wxDC& dc, // if the close button is showing, add space for it if (close_button_state != wxAUI_BUTTON_STATE_HIDDEN) + { // increase by button size plus the padding tab_width += wnd->FromDIP(16) + wnd->FromDIP(3); + } // if there's a bitmap, add space for it if (bitmap.IsOk())