[goffice] Debug: conditionalize debug print.



commit fc3f5555b9373795bca6e6b4021217abf6b5e47d
Author: Morten Welinder <terra gnome org>
Date:   Sat May 12 11:43:40 2012 -0400

    Debug: conditionalize debug print.

 ChangeLog                       |    5 +++++
 goffice/graph/gog-plot-engine.c |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d5707b4..6e677f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-12  Morten Welinder  <terra gnome org>
+
+	* goffice/graph/gog-plot-engine.c
+	(cb_pending_trend_line_types_load): Conditionalize debug print.
+
 2012-05-06  Jean Brefort  <jean brefort normalesup org>
 
 	* plugins/reg_logfit/gog-logfit.c (gog_log_fit_curve_get_equation): fixed
diff --git a/goffice/graph/gog-plot-engine.c b/goffice/graph/gog-plot-engine.c
index 60aa922..9b37f4f 100644
--- a/goffice/graph/gog-plot-engine.c
+++ b/goffice/graph/gog-plot-engine.c
@@ -465,7 +465,8 @@ cb_pending_trend_line_types_load (char const *path,
 	xmlDoc *doc;
 	GogTrendLineType *type;
 
-	g_printerr ("Loading %s\n", path);
+	if (debug)
+		g_printerr ("Loading %s\n", path);
 	doc = go_xml_parse_file (path);
 	g_return_if_fail (doc != NULL && doc->xmlRootNode != NULL);
 



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