diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-29 16:52:43 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-29 16:52:43 +0200 |
commit | 1d377bfd2fc391f15d39b230cbad48e49b81da95 (patch) | |
tree | 17358eb89f6d600767658e6d019e9d562f72c08c /src | |
parent | aa752ffb9f2b331a29dcddd634b217b60b2e6090 (diff) |
fix buglet in set_labels
Diffstat (limited to 'src')
-rw-r--r-- | src/GipfelWidget.cxx | 2 |
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)) |