compilation warning fix for the daily builds

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-03-09 16:54:42 +00:00
parent 95d8a1da30
commit 68d95db4d0

View File

@ -333,7 +333,8 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
// TODO: probably use wxUniv themes functionality
return 0;
#else // !__WXMICROWIN__
wxCHECK_MSG( index < WXSIZEOF(gs_metricsMap), 0, _T("invalid metric") );
wxCHECK_MSG( index > 0 && (size_t)index < WXSIZEOF(gs_metricsMap), 0,
_T("invalid metric") );
int indexMSW = gs_metricsMap[index];
if ( indexMSW == -1 )