]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/gauge.cpp
use wxLanguageInfo::GetLocaleName() instead of Desscription which can't be passed...
[wxWidgets.git] / src / univ / gauge.cpp
index 898d4effa37782ad0663c0d8d463078604cb9f9e..c887c2cf176cced1e02e0a87080eba4db5d683d0 100644 (file)
     #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-#endif //WX_PRECOMP
+#if wxUSE_GAUGE
 
 #include "wx/gauge.h"
 
-#if wxUSE_GAUGE
+#ifndef WX_PRECOMP
+#endif //WX_PRECOMP
 
 #include "wx/univ/renderer.h"
 
@@ -64,7 +64,7 @@ bool wxGauge::Create(wxWindow *parent,
         return false;
     }
 
-    SetBestSize(size);
+    SetInitialSize(size);
 
     return true;
 }