From fc29e86ef781c56b4cfbd07bc17ac1611d211884 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 5 Jan 2002 22:48:25 +0000 Subject: [PATCH] Fixed gs_metricsMap so the constants line up correctly, there was an 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/settings.cpp b/src/msw/settings.cpp index 3f6107f4f8..3e55d24dfe 100644 --- a/src/msw/settings.cpp +++ b/src/msw/settings.cpp @@ -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 -- 2.45.2