[goffice] Fixed warnings.



commit 6757d84f63e7b3508278040526f26b0ed7d4cebe
Author: Jean Brefort <jean brefort normalesup org>
Date:   Tue Aug 31 22:26:24 2010 +0200

    Fixed warnings.

 goffice/graph/gog-plot.c  |    7 ++++---
 goffice/utils/go-editor.c |    2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/goffice/graph/gog-plot.c b/goffice/graph/gog-plot.c
index 2225100..8228c4e 100644
--- a/goffice/graph/gog-plot.c
+++ b/goffice/graph/gog-plot.c
@@ -508,10 +508,11 @@ gog_plot_update_cardinality (GogPlot *plot, int index_num)
 		/* now add the trend lines if any */
 		children = GOG_OBJECT (series)->children;
 		while (children) {
-			if (GOG_IS_TREND_LINE (children->data))
+			if (GOG_IS_TREND_LINE (children->data)) {
 				j++;
-			if (!gog_trend_line_has_legend (GOG_TREND_LINE (children->data)))
-				no_legend++;
+				if (!gog_trend_line_has_legend (GOG_TREND_LINE (children->data)))
+					no_legend++;
+			}
 			children = children->next;
 		}
 	}
diff --git a/goffice/utils/go-editor.c b/goffice/utils/go-editor.c
index e45a992..861707a 100644
--- a/goffice/utils/go-editor.c
+++ b/goffice/utils/go-editor.c
@@ -204,7 +204,7 @@ go_editor_get_page (GOEditor *editor, char const *name)
 		if (strcmp (page->label, name))
 			return page->widget;
 	}
-
+	return NULL;
 }
 
 #endif



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