]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/calctrlg.cpp
Added ability to switch off more components of the size page UI
[wxWidgets.git] / src / generic / calctrlg.cpp
index c19710b5b8c60d91e2ca0c066b00173b1a7f32b7..f8a14221c67999cb66cb9d2894df4307beabbde2 100644 (file)
@@ -1002,13 +1002,13 @@ void wxGenericCalendarCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
                             colBg = attr->GetBackgroundColour();
                         }
 
-                        if ( colFg.Ok() )
+                        if ( colFg.IsOk() )
                         {
                             dc.SetTextForeground(colFg);
                             changedColours = true;
                         }
 
-                        if ( colBg.Ok() )
+                        if ( colBg.IsOk() )
                         {
                             dc.SetTextBackground(colBg);
                             changedColours = true;