From 9bceb553121f7ca130223b59ab6fc243ec850038 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 29 Mar 2009 12:47:31 +0200 Subject: style --- src/GipfelWidget.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index 444aea7..1185f36 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -337,7 +337,7 @@ overlap(double m1, double n1, double m2, double n2) { void GipfelWidget::set_labels(Hills *v) { - int width, height; + int height; fl_font(FL_HELVETICA, 8); height = fl_height(); @@ -351,9 +351,9 @@ GipfelWidget::set_labels(Hills *v) { if (!show_hidden && (m->flags & Hill::HIDDEN)) continue; - width = (int) ceilf(fl_width(m->name)); - m->label_x = width; + m->label_x = (int) fl_width(m->name) + 1; m->label_y = 0; + for (int j = 0; j < i; j++) { Hill *n = v->get(j); -- cgit v1.2.3