]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
Avoid an assert when m_dir is empty
[wxWidgets.git] / src / msw / control.cpp
index 056794b517d96eee3368a24a770f67095a5a1629..0d937c901693da522a0c4d9933bcd6c388336a18 100644 (file)
@@ -365,7 +365,7 @@ WXHBRUSH wxControl::DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd)
     HDC hdc = (HDC)pDC;
 
     WXHBRUSH hbr = 0;
-    if ( !colBg.Ok() )
+    if ( !colBg.IsOk() )
     {
         if ( wxWindow *win = wxFindWinFromHandle(hWnd) )
             hbr = win->MSWGetBgBrush(pDC);
@@ -380,7 +380,7 @@ WXHBRUSH wxControl::DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd)
     // use the background colour override if a valid colour is given: this is
     // used when the control is disabled to grey it out and also if colBg was
     // set just above
-    if ( colBg.Ok() )
+    if ( colBg.IsOk() )
     {
         wxBrush *brush = wxTheBrushList->FindOrCreateBrush(colBg);
         hbr = (WXHBRUSH)brush->GetResourceHandle();