[GRASS-SVN] r35018 - grass/trunk/visualization/nviz2/cmd
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 23 11:42:37 EST 2008
Author: glynn
Date: 2008-12-23 11:42:37 -0500 (Tue, 23 Dec 2008)
New Revision: 35018
Modified:
grass/trunk/visualization/nviz2/cmd/args.c
grass/trunk/visualization/nviz2/cmd/write_img.c
Log:
Don't try to write TIFF if built --without-tiff
Modified: grass/trunk/visualization/nviz2/cmd/args.c
===================================================================
--- grass/trunk/visualization/nviz2/cmd/args.c 2008-12-23 15:59:47 UTC (rev 35017)
+++ grass/trunk/visualization/nviz2/cmd/args.c 2008-12-23 16:42:37 UTC (rev 35018)
@@ -78,7 +78,11 @@
params->format = G_define_option();
params->format->key = "format";
params->format->type = TYPE_STRING;
+#ifdef HAVE_TIFFIO_H
params->format->options = "ppm,tif"; /* TODO: png */
+#else
+ params->format->options = "ppm";
+#endif
params->format->answer = "ppm";
params->format->description = _("Graphics file format");
params->format->required = YES;
Modified: grass/trunk/visualization/nviz2/cmd/write_img.c
===================================================================
--- grass/trunk/visualization/nviz2/cmd/write_img.c 2008-12-23 15:59:47 UTC (rev 35017)
+++ grass/trunk/visualization/nviz2/cmd/write_img.c 2008-12-23 16:42:37 UTC (rev 35018)
@@ -34,8 +34,10 @@
{
if (format == FORMAT_PPM)
GS_write_ppm(name);
+#ifdef HAVE_TIFFIO_H
else if (format == FORMAT_TIF)
GS_write_tif(name);
+#endif
else
return 0;
More information about the grass-commit
mailing list