From 1d377bfd2fc391f15d39b230cbad48e49b81da95 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 29 Mar 2009 16:52:43 +0200 Subject: fix buglet in set_labels --- src/GipfelWidget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index e30443c..aa5c2ca 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -355,7 +355,7 @@ GipfelWidget::set_labels(Hills *v) { m->label_x = (int) fl_width(m->name) + 1; m->label_y = 0; - for (int j = i; j > 0; j--) { + for (int j = i - 1; j >= 0; j--) { Hill *n = v->get(j); if (n->flags & (Hill::DUPLICATE | Hill::TRACK_POINT)) -- cgit v1.2.3