summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-11-10 22:45:42 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-11-10 22:45:42 +0100
commit2546088f87b60794dfea8a079c2def8d8e8bb216 (patch)
treeea173c76a88425b03bd9ae00f0c93ca721ab09f1 /src
parentf84736104cc5d886c50eb6006e8310bea733976d (diff)
don't account for hidden peaks in GipfelWidget::set_labels
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx4
1 files changed, 4 insertions, 0 deletions
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) &&