diff options
author | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2008-12-08 07:16:14 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-12-12 12:00:41 +0000 |
commit | 4ba77f776509caad030edf818a076ea9b071ad23 (patch) | |
tree | 427df8c31b5c2b2d7b8abf3aeda3716a82ba9834 /util | |
parent | af53297a97eec505ac2a90768badda72056c6e3b (diff) |
[script] Fix dictionary construction to access the right stack slots.
It bound values to themselves and ignored keys.
Diffstat (limited to 'util')
-rw-r--r-- | util/cairo-script/cairo-script-operators.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cairo-script/cairo-script-operators.c b/util/cairo-script/cairo-script-operators.c index 81412583..cde54c2a 100644 --- a/util/cairo-script/cairo-script-operators.c +++ b/util/cairo-script/cairo-script-operators.c @@ -544,9 +544,9 @@ end_dict_construction (csi_t *ctx) break; } - check (1); + check (2); - name = _csi_peek_ostack (ctx, 0); + name = _csi_peek_ostack (ctx, 1); if (_csi_unlikely (csi_object_get_type (name) != CSI_OBJECT_TYPE_NAME)) { |