From c98f8245d804fba5539d03947a13ecc44b9627eb Mon Sep 17 00:00:00 2001 From: twanvl Date: Sat, 10 Jan 2009 02:45:18 +0000 Subject: [PATCH] init pack total control before setting sizer, so CustomPackDialog gets the right size git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1332 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/set/random_pack_panel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/set/random_pack_panel.cpp b/src/gui/set/random_pack_panel.cpp index 2d19aae2..83eeb6e9 100644 --- a/src/gui/set/random_pack_panel.cpp +++ b/src/gui/set/random_pack_panel.cpp @@ -363,12 +363,13 @@ CustomPackDialog::CustomPackDialog(Window* parent, const SetP& set, const PackTy } } } - s->SetSizeHints(this); - SetSizer(s); // update totals generator.reset(set,0); totals->setGame(set->game); updateTotals(); + // set sizer + s->SetSizeHints(this); + SetSizer(s); } void CustomPackDialog::updateTotals() {