diff --git a/src/Fl_Tree.cxx b/src/Fl_Tree.cxx index 0484f69db..62fefdc08 100644 --- a/src/Fl_Tree.cxx +++ b/src/Fl_Tree.cxx @@ -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); } }