summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-07-17 20:38:01 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-07-17 20:38:01 +0200
commit71c0affa382b4995e36906e34da648f50bfa7c6f (patch)
tree740e77ec621bf13402e9a255f46013929e8e7bc1 /src
parente0b97a5b06578797a8a65796bc694e8048559a10 (diff)
cleanup
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx6
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