[GRASS-SVN] r60029 - grass/branches/releasebranch_7_0/lib/cairodriver

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 1 13:55:17 PDT 2014


Author: neteler
Date: 2014-05-01 13:55:17 -0700 (Thu, 01 May 2014)
New Revision: 60029

Modified:
   grass/branches/releasebranch_7_0/lib/cairodriver/Raster.c
Log:
cairodriver: improved error message (triggered via d.mon/d.rast)

Modified: grass/branches/releasebranch_7_0/lib/cairodriver/Raster.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/cairodriver/Raster.c	2014-05-01 20:35:41 UTC (rev 60028)
+++ grass/branches/releasebranch_7_0/lib/cairodriver/Raster.c	2014-05-01 20:55:17 UTC (rev 60029)
@@ -68,9 +68,9 @@
     src_surf = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, src_w, src_h);
     status = cairo_surface_status(src_surf);
     if (status != CAIRO_STATUS_SUCCESS)
-	G_fatal_error("Cairo_begin_raster(): %s (%s)",
+	G_fatal_error("Cairo_begin_raster(): %s (%s). Using rows: %d, cols: %d ",
                       _("Failed to create surface"),
-                      cairo_status_to_string (status));
+                      cairo_status_to_string (status), src_b, src_r);
 
     src_data = cairo_image_surface_get_data(src_surf);
     src_stride = cairo_image_surface_get_stride(src_surf);



More information about the grass-commit mailing list