diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/GipfelWidget.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index 3f3b7cd..444aea7 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -338,13 +338,12 @@ overlap(double m1, double n1, double m2, double n2) { void GipfelWidget::set_labels(Hills *v) { int width, height; - Hill *m, *n; fl_font(FL_HELVETICA, 8); height = fl_height(); for (int i = 0; i < v->get_num(); i++) { - m = v->get(i); + Hill *m = v->get(i); if (m->flags & (Hill::DUPLICATE | Hill::TRACK_POINT)) continue; @@ -356,7 +355,7 @@ GipfelWidget::set_labels(Hills *v) { m->label_x = width; m->label_y = 0; for (int j = 0; j < i; j++) { - n = v->get(j); + Hill *n = v->get(j); if (n->flags & (Hill::DUPLICATE | Hill::TRACK_POINT)) continue; |