diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/GipfelWidget.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index d737a0f..105cd30 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -151,8 +151,6 @@ GipfelWidget::get_image_filename() { int GipfelWidget::save_image(char *file) { - int ret; - if (img_file == NULL) { fprintf(stderr, "Nothing to save\n"); return 1; @@ -170,9 +168,7 @@ GipfelWidget::save_image(char *file) { md->projection_type((int) projection()); md->distortion_params(pan->parms.k0, pan->parms.k1, pan->parms.x0); - ret = md->save_image(img_file, file); - - return ret; + return md->save_image(img_file, file); } int |