[GRASS-SVN] r72951 - grass/trunk/misc/m.nviz.image

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 4 20:20:15 PDT 2018


Author: hcho
Date: 2018-07-04 20:20:15 -0700 (Wed, 04 Jul 2018)
New Revision: 72951

Modified:
   grass/trunk/misc/m.nviz.image/write_img.c
Log:
m.nviz.image: Fix write_img return

Modified: grass/trunk/misc/m.nviz.image/write_img.c
===================================================================
--- grass/trunk/misc/m.nviz.image/write_img.c	2018-07-04 19:45:06 UTC (rev 72950)
+++ grass/trunk/misc/m.nviz.image/write_img.c	2018-07-05 03:20:15 UTC (rev 72951)
@@ -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;



More information about the grass-commit mailing list