summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx2
1 files changed, 1 insertions, 1 deletions
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))