From b626fee23896d546ec80d2baf57f74620dfcf278 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 8 Aug 2006 10:15:15 +0000 Subject: [PATCH] safer GetFeature implementation: assert on unknown feature git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mgl/settings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mgl/settings.cpp b/src/mgl/settings.cpp index 6254a65ed9..01ca9d65b9 100644 --- a/src/mgl/settings.cpp +++ b/src/mgl/settings.cpp @@ -108,12 +108,12 @@ bool wxSystemSettingsNative::HasFeature(wxSystemFeature index) switch (index) { case wxSYS_CAN_ICONIZE_FRAME: - return false; case wxSYS_CAN_DRAW_FRAME_DECORATIONS: + case wxSYS_TABLET_PRESENT: return false; + default: - { - } + wxFAIL_MSG( _T("unknown feature") ); } return false; -- 2.45.2