[gnumeric] objects: always complain when we cannot print an object. print type name.



commit 040fcae6cbbef2fcc18c4d270f5c185fb9ddab96
Author: Morten Welinder <terra gnome org>
Date:   Mon Sep 27 09:43:21 2010 -0400

    objects: always complain when we cannot print an object.  print type name.

 src/sheet-object-widget.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/sheet-object-widget.c b/src/sheet-object-widget.c
index 8acba05..23c4418 100644
--- a/src/sheet-object-widget.c
+++ b/src/sheet-object-widget.c
@@ -3468,10 +3468,11 @@ sheet_widget_draw_cairo (SheetObject const *so, cairo_t *cr,
 		cairo_fill (cr);
 		cairo_restore (cr);
 		g_object_unref(G_OBJECT (ss));
-	} else 
-		g_warning ("Failed to draw sheet object widget.");
-
+		return;
+	}
 #endif
+	g_warning ("Failed to draw sheet object widget of type %s",
+		   g_type_name_from_instance ((gpointer)sow));
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]