[goffice] do not attempt to allocate a virtual class instance.



commit 3ba4b6da612783ba510b62c49870f1fae9dc5408
Author: Jean Brefort <jean brefort normalesup org>
Date:   Thu Nov 19 20:37:34 2009 +0100

    do not attempt to allocate a virtual class instance.

 ChangeLog                  |    5 +++++
 goffice/graph/gog-series.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1764914..32f8074 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-11-19  Jean Brefort  <jean brefort normalesup org>
 
+	* goffice/graph/gog-series.c (role_series_element_allocate): don't attempt
+	to allocate a virtual class instance.
+
+2009-11-19  Jean Brefort  <jean brefort normalesup org>
+
 	* goffice/data/go-data.c (go_data_vector_get_str,
 	go_data_matrix_get_str): no need to load values, just length or
 	size.
diff --git a/goffice/graph/gog-series.c b/goffice/graph/gog-series.c
index 175e37c..bf3b383 100644
--- a/goffice/graph/gog-series.c
+++ b/goffice/graph/gog-series.c
@@ -267,7 +267,7 @@ role_series_element_allocate (GogObject *series)
 	GogObject *gse;
 
 	if (type == 0)
-		type = GOG_TYPE_SERIES_ELEMENT;
+		return NULL;
 
 	gse = g_object_new (type, NULL);
 	if (gse != NULL)



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