diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 4593844fdb..7303a647e4 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -54,7 +54,7 @@ public: wxSizerFlags& Align(int alignment) // combination of wxAlignment values { - m_flags &= wxALIGN_MASK; + m_flags &= !wxALIGN_MASK; m_flags |= alignment; return *this;