diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-17 20:38:01 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-07-17 20:38:01 +0200 |
commit | 71c0affa382b4995e36906e34da648f50bfa7c6f (patch) | |
tree | 740e77ec621bf13402e9a255f46013929e8e7bc1 /src | |
parent | e0b97a5b06578797a8a65796bc694e8048559a10 (diff) |
cleanup
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 |