]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/themes/metal.cpp
assert is raised when using the thread sample (which works) so the test is
[wxWidgets.git] / src / univ / themes / metal.cpp
index 9cc918b5bf2ec8b8867325383eef10bb08ea28b4..687a6847e3d39643a9e12912faa44f67b2005513 100644 (file)
@@ -5,7 +5,7 @@
 // Created:     06.08.00
 // RCS-ID:      $Id$
 // Copyright:   (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 // ===========================================================================
@@ -157,8 +157,8 @@ private:
     bool GetOrCreateTheme()
     {
         if ( !m_win32Theme )
-            m_win32Theme = wxTheme::Create("win32");
-        return m_win32Theme;
+            m_win32Theme = wxTheme::Create( wxT("win32") );
+        return m_win32Theme != NULL;
     }
 private:
     wxTheme *m_win32Theme;