Skip to content

Commit

Permalink
m.nviz.image: Fix write_img return
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72951 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
HuidaeCho committed Jul 5, 2018
1 parent 4c68aca commit 8edccb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/m.nviz.image/write_img.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
int write_img(const char *name, int format)
{
if (format == FORMAT_PPM)
return !GS_write_ppm(name);
return GS_write_ppm(name);
#ifdef HAVE_TIFFIO_H
else if (format == FORMAT_TIF)
return !GS_write_tif(name);
return GS_write_tif(name);
#endif
else
return 2;
Expand Down

0 comments on commit 8edccb6

Please sign in to comment.