Small code simplification as suggested in comment #15 of STR#2828

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2016-07-14 01:12:21 +00:00
parent 5a340a2e5e
commit e45dfc2b20

View File

@ -827,12 +827,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);
}
}
@ -875,12 +870,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);
}
}