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:
parent
5a340a2e5e
commit
e45dfc2b20
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user