From 3167a3d1d5d88e741f502e72c47e492f82a1697c Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sat, 24 Nov 2007 22:59:39 +0100 Subject: Adding parent setting for GMathArray's children --- core/gmathlib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/gmathlib.c b/core/gmathlib.c index 96bbfa8..b3e53b8 100644 --- a/core/gmathlib.c +++ b/core/gmathlib.c @@ -269,6 +269,7 @@ gmathsymbol_new_array (GMathContext *context, guint hsize, guint vsize, { GMathSymbol *symbol; GMathArray *array; + guint i; symbol = gmathsymbol_new (context, "array"); gmathsymbol_set_value (symbol, ""); @@ -283,6 +284,9 @@ gmathsymbol_new_array (GMathContext *context, guint hsize, guint vsize, array->children = contents; + for(i = 0; i < vsize*hsize; i++) + array->children[i]->parent = array; + return symbol; } -- cgit v1.1