[goffice] Don't crash while selecting the 3d box.
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Don't crash while selecting the 3d box.
- Date: Sat, 10 May 2014 09:37:57 +0000 (UTC)
commit 715acd4ec357ea68fe5352eeae5a501a4d0ef28b
Author: Jean Brefort <jean brefort normalesup org>
Date: Sat May 10 11:37:34 2014 +0200
Don't crash while selecting the 3d box.
ChangeLog | 5 +++++
goffice/graph/gog-graph.c | 4 +++-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2a6a4bd..9cde2f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-10 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/graph/gog-graph.c (gog_graph_view_render): don't crash when
+ selecting the 3d box.
+
2014-05-08 Morten Welinder <terra gnome org>
* goffice/utils/go-style.c (go_style_sax_load_line): Read
diff --git a/goffice/graph/gog-graph.c b/goffice/graph/gog-graph.c
index 8c45a48..b1346ab 100644
--- a/goffice/graph/gog-graph.c
+++ b/goffice/graph/gog-graph.c
@@ -1037,7 +1037,9 @@ gog_graph_view_render (GogView *view, GogViewAllocation const *bbox)
gog_view_render (ptr->data, bbox);
}
- if (gview->selected_view != NULL)
+ if (gview->selected_view != NULL &&
+ GOG_IS_STYLED_OBJECT (gview->selected_view->model) &&
+ !gview->selected_view->model->invisible)
gog_view_render_toolkit (gview->selected_view);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]