diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-10-31 22:15:30 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-10-31 22:15:30 +0200 |
commit | 2e55fcc1dc5f421765e44f5be9f1610f392b8636 (patch) | |
tree | 29138d5c3bd3a398b4e56b7e85bd626d2afc904c /src | |
parent | 2ee362f40d908f817bb23a4af43d4021d3732bdc (diff) |
don't try to display invisible trackpoints
Diffstat (limited to 'src')
-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 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, |