[GRASS-SVN] r35019 -
grass/branches/develbranch_6/visualization/nviz2/cmd
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 23 15:39:32 EST 2008
Author: neteler
Date: 2008-12-23 15:39:31 -0500 (Tue, 23 Dec 2008)
New Revision: 35019
Modified:
grass/branches/develbranch_6/visualization/nviz2/cmd/args.c
grass/branches/develbranch_6/visualization/nviz2/cmd/write_img.c
Log:
glynn: Don't try to write TIFF if built --without-tiff (merge from trunk, r35018)
Modified: grass/branches/develbranch_6/visualization/nviz2/cmd/args.c
===================================================================
--- grass/branches/develbranch_6/visualization/nviz2/cmd/args.c 2008-12-23 16:42:37 UTC (rev 35018)
+++ grass/branches/develbranch_6/visualization/nviz2/cmd/args.c 2008-12-23 20:39:31 UTC (rev 35019)
@@ -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/branches/develbranch_6/visualization/nviz2/cmd/write_img.c
===================================================================
--- grass/branches/develbranch_6/visualization/nviz2/cmd/write_img.c 2008-12-23 16:42:37 UTC (rev 35018)
+++ grass/branches/develbranch_6/visualization/nviz2/cmd/write_img.c 2008-12-23 20:39:31 UTC (rev 35019)
@@ -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