diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 71d6eca0f9..989b173844 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -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"); }