]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/sizer.h
Applied patch [ 1255676 ] stc2wx/wx2stc not exported (Win32 Unicode DLL)
[wxWidgets.git] / include / wx / sizer.h
index 7303a647e4246b61ebeafbaa9398bd1093a48ce6..53dde1a4bf464c5c7cf06379e3eb5c460ec2e192 100644 (file)
@@ -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