]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/slider.cpp
no changes, just fixed a typo in an error message
[wxWidgets.git] / src / os2 / slider.cpp
index ae0c5c1520811ab6794bdd275e691933dbafa4c4..eec25e5f92f79eb3807f5878ce9a76c504c7208b 100644 (file)
@@ -406,11 +406,9 @@ bool wxSlider::Create(
                                               )
                                  ) + 4; // for bordersizes
 
-    wxColour                        vColour;
+    wxColour vColour(*wxBLACK);
 
-    vColour.Set(wxString(wxT("BLACK")));
-
-    LONG                            lColor = (LONG)vColour.GetPixel();
+    LONG lColor = (LONG)vColour.GetPixel();
 
     ::WinSetPresParam( m_hStaticMin
                       ,PP_FOREGROUNDCOLOR