]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
Fix for crash when opening empty node
[wxWidgets.git] / src / os2 / statbox.cpp
index 41f25791f4e0645f33c6adf8367204c9e6292cb6..8ae9f4d7ab86a0f47a8d5dbadc3a5b64b8aa787c 100644 (file)
@@ -62,9 +62,7 @@ bool wxStaticBox::Create( wxWindow*       pParent,
     //
     SetBackgroundColour(GetParent()->GetBackgroundColour());
 
     //
     SetBackgroundColour(GetParent()->GetBackgroundColour());
 
-    wxColour                        vColour;
-    vColour.Set(wxString(wxT("BLACK")));
-    LONG                            lColor = (LONG)vColour.GetPixel();
+    LONG lColor = (LONG)wxBLACK->GetPixel();
     ::WinSetPresParam( m_hWnd
                       ,PP_FOREGROUNDCOLOR
                       ,sizeof(LONG)
     ::WinSetPresParam( m_hWnd
                       ,PP_FOREGROUNDCOLOR
                       ,sizeof(LONG)