]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sizer.cpp
Don't update position of widgets in a wxPizza from size_allocate handler.
[wxWidgets.git] / src / common / sizer.cpp
index 37f31766a341d3839947ae31afeee41261d9d296..31bed2c619db8fa09f0cd1191bccbc4c29c6663e 100644 (file)
@@ -5,7 +5,6 @@
 //              Dirk Holtwick, Ron Lee
 // Modified by: Ron Lee
 // Created:
-// RCS-ID:      $Id$
 // Copyright:   (c) Robin Dunn, Robert Roebling
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -976,6 +975,8 @@ void wxSizer::Layout()
     CalcMin();
 
     // Applies the layout and repositions/resizes the items
+    wxWindow::ChildrenRepositioningGuard repositionGuard(m_containingWindow);
+
     RecalcSizes();
 }