From: Robin Dunn <robin@alldunn.com>
Date: Wed, 29 Sep 2004 16:49:01 +0000 (+0000)
Subject: Just return zero without failing for unknown metrics, like the other
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c4dc4cdd5adb1c8d04041c6dc11ba7cc94c5414d

Just return zero without failing for unknown metrics, like the other
ports do.


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

diff --git a/src/gtk/settings.cpp b/src/gtk/settings.cpp
index 99a09be81e..3b4312a29c 100644
--- a/src/gtk/settings.cpp
+++ b/src/gtk/settings.cpp
@@ -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
     }
 }
 
diff --git a/src/gtk1/settings.cpp b/src/gtk1/settings.cpp
index 99a09be81e..3b4312a29c 100644
--- a/src/gtk1/settings.cpp
+++ b/src/gtk1/settings.cpp
@@ -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
     }
 }