]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
notify the event loop that synthesized events are on the queue, wait for them to...
[wxWidgets.git] / src / common / wincmn.cpp
index c3b4e315cecdc6190945ff1d56b5f5f4de96909d..3c2c0f4e1d363f6264f3babe188074d2ebb1670a 100644 (file)
@@ -2035,6 +2035,11 @@ public:
         return true;
     }
 
+    // Give it a virtual dtor just to suppress gcc warnings about a class with
+    // virtual methods but non-virtual dtor -- even if this is completely safe
+    // here as we never use the objects of this class polymorphically.
+    virtual ~ValidationTraverserBase() { }
+
 protected:
     // Called for each child, validator is guaranteed to be non-NULL.
     virtual bool OnDo(wxValidator* validator) = 0;
@@ -2605,6 +2610,8 @@ void wxWindowBase::SetConstraintSizes(bool recurse)
     wxLayoutConstraints *constr = GetConstraints();
     if ( constr && constr->AreSatisfied() )
     {
+        ChildrenRepositioningGuard repositionGuard(this);
+
         int x = constr->left.GetValue();
         int y = constr->top.GetValue();
         int w = constr->width.GetValue();