]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/window.cpp
applied bug fix
[wxWidgets.git] / src / os2 / window.cpp
index 71d6eca0f9bcbd4951700884e45e1f9957477252..605a5ade87bda35fbe7449b1078557666dc1501e 100644 (file)
@@ -1849,7 +1849,7 @@ void wxWindowOS2::GetTextExtent(
     int                             i;
     int                             l;
     FONTMETRICS                     vFM; // metrics structure
-    BOOL                            bRc;
+    BOOL                            bRc = FALSE;
     char*                           pStr;
     ERRORID                         vErrorCode; // last error id code
     HPS                             hPS;
@@ -3188,7 +3188,7 @@ bool wxWindowOS2::OS2Create(
     // which is the same but without CS_[HV]REDRAW class styles so using it
     // ensures that the window is not fully repainted on each resize
     //
-    if (!HasStyle(wxFULL_REPAINT_ON_RESIZE))
+    if (!HasFlag(wxFULL_REPAINT_ON_RESIZE))
     {
         sClassName += wxT("NR");
     }