]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dialogs/dialogs.cpp
fix for potential crash when conversion fails
[wxWidgets.git] / samples / dialogs / dialogs.cpp
index 7899fbf30d5fe308f20d398d6f70de3878f452e0..deb7511658c0569add89febc54d05f3045b3bfc0 100644 (file)
@@ -227,7 +227,7 @@ bool MyApp::OnInit()
     wxInitAllImageHandlers();
 #endif
 
-    m_canvasTextColour = wxColour(_T("BLACK"));
+    m_canvasTextColour = *wxBLACK;
     m_canvasFont = *wxNORMAL_FONT;
 
     // Create the main frame window