[goffice] One more theme issue.



commit e9f6bbffc8bde4870923a1f016d8dbc54693c14b
Author: Jean Brefort <jean brefort normalesup org>
Date:   Mon Nov 12 17:34:45 2012 +0100

    One more theme issue.

 ChangeLog                  |    5 +++++
 goffice/graph/gog-theme.c  |    2 +-
 plugins/plot_pie/gog-pie.c |    2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3b3c814..814c7d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-11-12  Jean Brefort  <jean brefort normalesup org>
 
+	* goffice/graph/gog-theme.c (theme_loaded): fixed series style.
+	* plugins/plot_pie/gog-pie.c (gog_pie_view_render): fixed a leak.
+
+2012-11-12  Jean Brefort  <jean brefort normalesup org>
+
 	* goffice/utils/go-style.c (go_style_init): adjust bevel limit.
 
 2012-11-11  Jean Brefort  <jean brefort normalesup org>
diff --git a/goffice/graph/gog-theme.c b/goffice/graph/gog-theme.c
index e9c6656..8cb631a 100644
--- a/goffice/graph/gog-theme.c
+++ b/goffice/graph/gog-theme.c
@@ -724,7 +724,7 @@ theme_loaded (struct theme_load_state *state)
 	style->line.dash_type = GO_LINE_SOLID;
 	style->line.width = 0; /* hairline */
 	style->line.color = GO_COLOR_BLACK;
-	style->fill.type = GO_STYLE_FILL_NONE;
+	style->fill.type = GO_STYLE_FILL_PATTERN;
 	if (state->theme->palette && state->theme->palette->len > 0)
 		gog_theme_add_element (state->theme, style,
 			   map_area_series_solid_palette, g_strdup ("GogSeries"), NULL);
diff --git a/plugins/plot_pie/gog-pie.c b/plugins/plot_pie/gog-pie.c
index 3f3fc7e..f52003c 100644
--- a/plugins/plot_pie/gog-pie.c
+++ b/plugins/plot_pie/gog-pie.c
@@ -1138,7 +1138,7 @@ gog_pie_view_render (GogView *view, GogViewAllocation const *bbox)
 		}
 
 		gog_renderer_pop_style (view->renderer);
-		if (model->base.vary_style_by_element)
+		if (model->base.vary_style_by_element || mode == GOG_SHOW_NEGS_WHITE)
 			g_object_unref (style);
 		if (white_style)
 			g_object_unref (white_style);



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