X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7516ed26c9749018135c24afdd0576e4366c92e6..1483041dab88f43563c26405c1e2a41d6babe6a0:/src/msw/settings.cpp 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