mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
fix thinko in Pane expose event handler.
There are always less dividers than children
This commit is contained in:
parent
393d69c7a0
commit
9a1c24dda7
1 changed files with 6 additions and 3 deletions
|
|
@ -304,14 +304,17 @@ Pane::on_expose_event (GdkEventExpose* ev)
|
|||
Children::iterator child;
|
||||
Dividers::iterator div;
|
||||
|
||||
for (child = children.begin(), div = dividers.begin(); child != children.end(); ++child, ++div) {
|
||||
for (child = children.begin(), div = dividers.begin(); child != children.end(); ++child) {
|
||||
|
||||
if (child->w->is_visible()) {
|
||||
propagate_expose (*(child->w), ev);
|
||||
}
|
||||
|
||||
if ((div != dividers.end()) && (*div)->is_visible()) {
|
||||
propagate_expose (**div, ev);
|
||||
if (div != dividers.end()) {
|
||||
if ((*div)->is_visible()) {
|
||||
propagate_expose (**div, ev);
|
||||
}
|
||||
++div;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue