]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/settings.cpp
[ 1522988 ] Keypress causes crash in combo sample
[wxWidgets.git] / src / mgl / settings.cpp
index 060e5bf51aa0afd13d3b85622e95763505ddfcbc..6254a65ed99ae3968e8144f69481cfb702c7fd57 100644 (file)
 #endif
 
 #include "wx/settings.h"
-#include "wx/colour.h"
-#include "wx/font.h"
-#include "wx/gdicmn.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/colour.h"
+    #include "wx/font.h"
+    #include "wx/gdicmn.h"
+#endif
+
 #include "wx/module.h"
 
 // ----------------------------------------------------------------------------
@@ -68,6 +72,9 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
                 gs_fontDefault = new wxFont(10, wxSWISS, wxNORMAL, wxNORMAL, false, "Arial");
             return *gs_fontDefault;
         }
+        default:
+        {
+        }
     }
 
     return wxNullFont;
@@ -88,6 +95,9 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index, wxWindow* WXUNUSED(w
         case wxSYS_VSCROLL_X:
         case wxSYS_HSCROLL_Y:
             return 15;
+        default:
+        {
+        }
     }
 
     return -1;  // unsupported metric
@@ -101,6 +111,9 @@ bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
             return false;
         case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
             return false;
+        default:
+        {
+        }
     }
 
     return false;