]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/gauge.cpp
don't use wxFileConfig to parse kdeglobals, it's not meant for such use. Fixes bug...
[wxWidgets.git] / src / gtk / gauge.cpp
index 45f1d7b86990d3c4d18d6c86546a371fd1909a3a..accbf868897740be66a9be6542979a246ae99045 100644 (file)
@@ -74,7 +74,10 @@ void wxGauge::DoSetGauge()
 
 wxSize wxGauge::DoGetBestSize() const
 {
-    return wxSize(100, 28);
+    if (HasFlag(wxGA_HORIZONTAL))
+        return wxSize(100, 28);
+    else
+        return wxSize(28, 100);
 }
 
 void wxGauge::SetRange( int range )