From 2546088f87b60794dfea8a079c2def8d8e8bb216 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 10 Nov 2005 22:45:42 +0100 Subject: don't account for hidden peaks in GipfelWidget::set_labels --- src/GipfelWidget.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index 7e8cf64..0c4ef08 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -418,6 +418,10 @@ GipfelWidget::set_labels(Hills *v) { continue; } + if (!show_hidden && (n->flags & Hill::HIDDEN)) { + continue; + } + // Check for overlapping labels and // overlaps between labels and peak markers if ((overlap(m->x, m->x + m->label_x, n->x, n->x + n->label_x) && -- cgit v1.2.3