summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-01-18 16:38:15 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-01-18 16:38:15 +0100
commit03f5f07ecd98ff6b34eebaf037fe1fc38bc99230 (patch)
tree0b9ab39ce32b005df808c5b3fe2561fa1cb7ef76 /src
parentbc09f57d68dcaa71a30a0bad80776aed3b9615bc (diff)
clear know_hills in load_image()
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx4
1 files changed, 3 insertions, 1 deletions
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 {