From a04f431b085cc4dddb4b839f78f846efd84f1bc7 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Tue, 4 May 2004 02:38:09 +0000 Subject: [PATCH] improved backwards compatibility when a wxGauge is (incorrectly) created without wxGA_HORIZONTAL style flag git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gauge95.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/msw/gauge95.cpp b/src/msw/gauge95.cpp index d2a7b58b23..6b176c92ec 100644 --- a/src/msw/gauge95.cpp +++ b/src/msw/gauge95.cpp @@ -171,10 +171,10 @@ wxSize wxGauge95::DoGetBestSize() const { // VZ: no idea where does 28 come from, it was there before my changes and // as nobody ever complained I guess we can leave it... - if (HasFlag(wxGA_HORIZONTAL)) - return wxSize(100, 28); + if (HasFlag(wxGA_VERTICAL)) + return wxSize(28, 100); else - return wxSize(28,100); + return wxSize(100, 28); } // ---------------------------------------------------------------------------- -- 2.45.2