fixes bug #5182 (editor crash while browsing folder structure)
This commit is contained in:
parent
811d531126
commit
b6f3ec5513
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ void menu::update_size()
|
|||
unsigned int h = heading_height();
|
||||
for(size_t i = get_position(),
|
||||
i_end = minimum(items_.size(), i + max_items_onscreen());
|
||||
i != i_end; ++i)
|
||||
i < i_end; ++i)
|
||||
h += get_item_rect(i).h;
|
||||
h = maximum(h, height());
|
||||
if (max_height_ > 0 && h > max_height_)
|
||||
|
|
Loading…
Add table
Reference in a new issue