]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/sizer.h
correct dll export declaration for wxVolume
[wxWidgets.git] / include / wx / sizer.h
index c4762c828e0753673a3397741608aaa213b1a614..2d3d87496c5952a22108a00adbc916fee8415eeb 100644 (file)
@@ -54,14 +54,19 @@ public:
 
     wxSizerFlags& Align(int alignment) // combination of wxAlignment values
     {
-        m_flags &= wxALL;
+        m_flags &= ~wxALIGN_MASK;
         m_flags |= alignment;
 
         return *this;
     }
 
+    wxSizerFlags& Expand()
+    {
+        m_flags |= wxEXPAND;
+        return *this;
+    }
+
     // some shortcuts for Align()
-    wxSizerFlags& Expand() { return Align(wxEXPAND); }
     wxSizerFlags& Centre() { return Align(wxCENTRE); }
     wxSizerFlags& Center() { return Centre(); }
     wxSizerFlags& Left() { return Align(wxALIGN_LEFT); }