diff options
Diffstat (limited to 'core/gmathlib.c')
-rw-r--r-- | core/gmathlib.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |