]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/sizer.h
Fix wrong tab order in wxAuiNotebook after dragging.
[wxWidgets.git] / include / wx / sizer.h
index ff462469b230d46a5342a1a362c9de07328bfd13..7e01ff8ad9b80a238aae2d04bc56fe5f326cd65c 100644 (file)
@@ -125,6 +125,10 @@ public:
 
     wxSizerFlags& Border(int direction, int borderInPixels)
     {
 
     wxSizerFlags& Border(int direction, int borderInPixels)
     {
+        wxCHECK_MSG( !(direction & ~wxALL), *this,
+                     wxS("direction must be a combination of wxDirection ")
+                     wxS("enum values.") );
+
         m_flags &= ~wxALL;
         m_flags |= direction;
 
         m_flags &= ~wxALL;
         m_flags |= direction;