[goffice] Fixed style in scatter plot after a valid but with invisible line series. [#698057]



commit d432930bc1ad01554e7fe93de6c54cb06d5d2c93
Author: Jean Brefort <jean brefort normalesup org>
Date:   Mon Apr 15 16:49:36 2013 +0200

    Fixed style in scatter plot after a valid but with invisible line series. [#698057]

 ChangeLog                | 5 +++++
 NEWS                     | 2 ++
 plugins/plot_xy/gog-xy.c | 3 +++
 3 files changed, 10 insertions(+)
---
diff --git a/ChangeLog b/ChangeLog
index 3e499fa..adf9f74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-15  Jean Brefort  <jean brefort normalesup org>
+
+       * plugins/plot_xy/gog-xy.c (gog_xy_view_render): fixed style in scatter plot
+       after a valid but with invisible line series. [#698057] 
+
 2013-04-07  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/utils/go-style.c (font_init): show the font face selector.
diff --git a/NEWS b/NEWS
index 6772009..ba1355c 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,8 @@ Jean:
        * Fix mouse events for widgets inside a GtkContainer. [#696533]
        * Make the GOEditor scrolled window optional. [696825]
        * Show the font face selector in the graph properties. [#697243]
+       * Fixed style in scatter plot after a valid but with invisible line
+       series. [#698057]
 
 Morten:
        * Fix problems with cspline boxed type. [#695550]
diff --git a/plugins/plot_xy/gog-xy.c b/plugins/plot_xy/gog-xy.c
index 455c711..7fbf915 100644
--- a/plugins/plot_xy/gog-xy.c
+++ b/plugins/plot_xy/gog-xy.c
@@ -1177,6 +1177,9 @@ gog_xy_view_render (GogView *view, GogViewAllocation const *bbox)
                                }
                                gog_renderer_fill_serie (view->renderer, path, next_path);
                        }
+               } else if (next_path) {
+                       go_path_free (next_path);
+                       next_path = NULL;
                }
 
                if (series->hdroplines) {


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