]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/sizer.h
fix wxBitmapComboBox Gtk-CRITICAL assertion `GTK_IS_ENTRY (entry)' failed
[wxWidgets.git] / include / wx / sizer.h
index ff462469b230d46a5342a1a362c9de07328bfd13..7e01ff8ad9b80a238aae2d04bc56fe5f326cd65c 100644 (file)
@@ -125,6 +125,10 @@ public:
 
     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;