Fixed gs_metricsMap so the constants line up correctly, there was an
authorRobin Dunn <robin@alldunn.com>
Sat, 5 Jan 2002 22:48:25 +0000 (22:48 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 5 Jan 2002 22:48:25 +0000 (22:48 +0000)
off-by-one since the wx enum starts at 1 instead of 0.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/settings.cpp

index 3f6107f4f811369689080d01352b7d703c798c75..3e55d24dfeed9f3f708062e43c36ac9efc5a2d17 100644 (file)
@@ -174,6 +174,7 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
 // unknown
 static const int gs_metricsMap[] =
 {
+    -1,  // wxSystemMetric enums start at 1, so give a dummy value for pos 0.
 #ifdef __WIN32__
     SM_CMOUSEBUTTONS,
 #else