]> git.saurik.com Git - wxWidgets.git/commitdiff
Just return zero without failing for unknown metrics, like the other
authorRobin Dunn <robin@alldunn.com>
Wed, 29 Sep 2004 16:49:01 +0000 (16:49 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 29 Sep 2004 16:49:01 +0000 (16:49 +0000)
ports do.

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

src/gtk/settings.cpp
src/gtk1/settings.cpp

index 99a09be81e00e29e858364f5b125506c836c4386..3b4312a29c2e20d7fd04afa85d98df0429ab1e15 100644 (file)
@@ -378,8 +378,7 @@ int wxSystemSettingsNative::GetMetric( wxSystemMetric index )
         case wxSYS_ICON_X:     return 32;
         case wxSYS_ICON_Y:     return 32;
         default:               
-            wxFAIL_MSG( wxT("wxSystemSettings::GetMetric not fully implemented") );
-            return 0;
+            return 0;   // metric is unknown
     }
 }
 
index 99a09be81e00e29e858364f5b125506c836c4386..3b4312a29c2e20d7fd04afa85d98df0429ab1e15 100644 (file)
@@ -378,8 +378,7 @@ int wxSystemSettingsNative::GetMetric( wxSystemMetric index )
         case wxSYS_ICON_X:     return 32;
         case wxSYS_ICON_Y:     return 32;
         default:               
-            wxFAIL_MSG( wxT("wxSystemSettings::GetMetric not fully implemented") );
-            return 0;
+            return 0;   // metric is unknown
     }
 }