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
This commit is contained in:
twanvl
2009-01-10 02:45:18 +00:00
parent c7c028b026
commit c98f8245d8
+3 -2
View File
@@ -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() {