diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-11-10 22:45:42 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-11-10 22:45:42 +0100 |
commit | 2546088f87b60794dfea8a079c2def8d8e8bb216 (patch) | |
tree | ea173c76a88425b03bd9ae00f0c93ca721ab09f1 | |
parent | f84736104cc5d886c50eb6006e8310bea733976d (diff) |
don't account for hidden peaks in GipfelWidget::set_labels
-rw-r--r-- | src/GipfelWidget.cxx | 4 |
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) && |