goffice r2065 - in trunk: . goffice/graph
- From: jbrefort svn gnome org
- To: svn-commits-list gnome org
- Subject: goffice r2065 - in trunk: . goffice/graph
- Date: Fri, 25 Apr 2008 10:30:43 +0100 (BST)
Author: jbrefort
Date: Fri Apr 25 09:30:43 2008
New Revision: 2065
URL: http://svn.gnome.org/viewvc/goffice?rev=2065&view=rev
Log:
2008-04-25 Jean Brefort <jean brefort normalesup org>
* goffice/graph/gog-series.c: (gog_series_dataset_set_dim): check
dim_i validity.
Modified:
trunk/ChangeLog
trunk/goffice/graph/gog-series.c
Modified: trunk/goffice/graph/gog-series.c
==============================================================================
--- trunk/goffice/graph/gog-series.c (original)
+++ trunk/goffice/graph/gog-series.c Fri Apr 25 09:30:43 2008
@@ -682,6 +682,7 @@
GogGraph *graph = gog_object_get_graph (GOG_OBJECT (series));
g_return_if_fail (IS_GOG_PLOT (series->plot));
+ g_return_if_fail (dim_i < -1);
if (dim_i < 0) {
char *name = NULL;
@@ -697,6 +698,8 @@
/* clone shared dimensions into other series in the plot, and
* invalidate if necessary */
desc = &series->plot->desc.series;
+ g_return_if_fail (dim_i < (int) desc->num_dim);
+
if (desc->dim[dim_i].is_shared) {
GSList *ptr = series->plot->series;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]