]> git.saurik.com Git - wxWidgets.git/commitdiff
improved backwards compatibility when a wxGauge is (incorrectly) created without...
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 4 May 2004 02:38:09 +0000 (02:38 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 4 May 2004 02:38:09 +0000 (02:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/gauge95.cpp

index d2a7b58b2315b20df34e8297ae3167100d1c6920..6b176c92ec77ce780f6cfddf4b82180f2512cee1 100644 (file)
@@ -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);
 }
 
 // ----------------------------------------------------------------------------