mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user