]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dnd/dnd.cpp
remove/replace redundant SetAutoLayout() and Fit() calls, leave just SetSizer[AndFit...
[wxWidgets.git] / samples / dnd / dnd.cpp
index f7af7468febe68e13c5c417b2d9415705793f80d..307c07d4ddad19f081be067b5f5fbbd2e5164ec2 100644 (file)
@@ -1624,8 +1624,7 @@ DnDShapeDialog::DnDShapeDialog(wxFrame *parent, DnDShape *shape)
     buttonSizer->Add( bt, 0, wxALL, 2 );
     topSizer->Add( buttonSizer, 0, wxALL|wxALIGN_RIGHT, 2 );
 
-    SetSizer( topSizer );
-    topSizer->Fit( this );
+    SetSizerAndFit( topSizer );
 }
 
 DnDShape *DnDShapeDialog::GetShape() const