Fix bug #15250...

...("Advance Unit window isn't big enough to contain a unit with 3 attacks")
This commit is contained in:
Benoît Timbert 2010-02-06 16:35:12 +00:00
parent b70029ece3
commit ee98475fa3

View file

@ -672,7 +672,8 @@ unit_preview_pane::unit_preview_pane(const gui::filter_textbox *filter, TYPE typ
filter_(filter), weapons_(type == SHOW_ALL), left_(on_left_side)
{
unsigned w = font::relative_size(weapons_ ? 200 : 190);
unsigned h = font::relative_size(weapons_ ? 370 : 140);
// advance test
unsigned h = font::relative_size(weapons_ ? 440 : 140);
set_measurements(w, h);
}