From 03f5f07ecd98ff6b34eebaf037fe1fc38bc99230 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 18 Jan 2008 16:38:15 +0100 Subject: clear know_hills in load_image() --- src/GipfelWidget.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index cb0b3dc..8303e46 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -76,6 +76,8 @@ GipfelWidget::load_image(char *file) { img_file = strdup(file); + known_hills->clear(); + h(img->h()); w(img->w()); @@ -117,7 +119,7 @@ GipfelWidget::load_image(char *file) { } fl = md->get_focal_length_35mm(); - if (isnan(fl)) { + if (isnan(fl) || fl == 0.0) { set_focal_length_35mm(35.0); have_gipfel_info = 0; } else { -- cgit v1.2.3