X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ffc9aa8a44613f4674cbfacae3e4f140ca6fd90..065fa73213c49c01489cf6c44f788c7486cf4f8d:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 7303a647e4..53dde1a4bf 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; @@ -255,6 +255,8 @@ public: void Show(bool show); bool IsShown() const; + void SetUserData(wxObject* userData) + { delete m_userData; m_userData = userData; } wxObject* GetUserData() const { return m_userData; } wxPoint GetPosition() const