summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 8aff10e..32ffbe2 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -347,6 +347,10 @@ GipfelWidget::draw() {
fl_color(FL_RED);
fl_line_style(FL_SOLID, 2);
for (i=1; i<track_points->get_num(); i++) {
+ if (!(track_points->get(i)->flags & Hill::VISIBLE)) {
+ continue;
+ }
+
if (last_initialized) {
fl_line(center_x + x() + last_x,
center_y + y() + last_y,