Bringing over this fix from 1.3 current to the porting branch.

Applies small code simplification as suggested in comment #15 of STR#2828.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11821 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2016-07-19 20:27:16 +00:00
parent dfd97e4639
commit b6e4668352

View File

@ -754,12 +754,7 @@ void Fl_Tree::draw() {
fl_color(FL_BLACK);
int tgt;
if (before) {
tgt = item->y();
} else {
tgt = item->y() + item->h();
}
int tgt = item->y() + (before ? 0 : item->h());
fl_line(item->x(), tgt, item->x() + item->w(), tgt);
}
}