summaryrefslogtreecommitdiff
path: root/src/GipfelWidget.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/GipfelWidget.cxx')
-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) &&