diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-09-20 19:48:29 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2007-09-20 19:48:29 +0200 |
commit | 9d458ef3f8998cdcf9a199f5e96e3bb30e9f5feb (patch) | |
tree | 10834a9440369a9a16bd3a9eeab924661f410ee7 /src | |
parent | c07fe54c98eac73c2e517425928ba7eaa0ff4dff (diff) |
add back-references in gipfelweb
Diffstat (limited to 'src')
-rw-r--r-- | src/GipfelWidget.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index 8590b5c..eefefc4 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -735,7 +735,8 @@ GipfelWidget::export_hills(const char *file, FILE *fp) { int _x = (int) rint(m->x) + w() / 2; int _y = (int) rint(m->y) + h() / 2; - if (m->flags & Hill::DUPLICATE || file && !(m->flags & Hill::EXPORT)) { + if (m->flags & Hill::DUPLICATE || m->flags & Hill::HIDDEN || + file && !(m->flags & Hill::EXPORT)) { continue; } @@ -743,14 +744,9 @@ GipfelWidget::export_hills(const char *file, FILE *fp) { continue; } - if (m->flags & Hill::HIDDEN) { - flags = "HIDDEN"; - } else { - flags = ""; - } - fprintf(fp, "%s\t%d\t%d\t%d\t%d\t%s\n", + fprintf(fp, "%s\t%d\t%d\t%d\t%d\n", m->name, (int) rint(m->height), _x, _y, - (int) rint(pan->get_real_distance(m)), flags); + (int) rint(pan->get_real_distance(m))); } pan->remove_hills(Hill::EXPORT); |