mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 15:56:10 +08:00
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:
+2
-12
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user