X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00dc67b89145eb35f35c1cac1e964f093c159861..4c81b43195fca7768fe5b7db1a93b51b41b8f28a:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 4593844fdb..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