13
0

fix thinko in Pane expose event handler.

There are always less dividers than children
This commit is contained in:
Paul Davis 2016-06-08 12:26:24 -04:00
parent 393d69c7a0
commit 9a1c24dda7

View File

@ -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;
}
}