From fbc64623754a833e557a89661c823dad22a215aa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 26 Aug 2021 23:11:56 +0100 Subject: [PATCH] Fix a gcc warning introduced by the previous commit Reverting the commits broke indentation, which resulted in -Wmisleading-indentation from (recent) gcc, so fix it by indenting the restored "if" properly. See #13130. --- src/msw/anybutton.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/anybutton.cpp b/src/msw/anybutton.cpp index 9310e33f1a..67c7640b7b 100644 --- a/src/msw/anybutton.cpp +++ b/src/msw/anybutton.cpp @@ -590,8 +590,8 @@ wxSize wxAnyButton::DoGetBestSize() const if ( ::SendMessage(GetHwnd(), BCM_GETIDEALSIZE, 0, (LPARAM)&idealSize) ) size.Set(idealSize.cx, idealSize.cy); - if ( m_imageData ) - AdjustForBitmapMargins(size); + if ( m_imageData ) + AdjustForBitmapMargins(size); } // If we failed to set the size using BCM_GETIDEALSIZE above, determine it