diff options
Diffstat (limited to 'liblogdiag/ld-diagram.c')
-rw-r--r-- | liblogdiag/ld-diagram.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/liblogdiag/ld-diagram.c b/liblogdiag/ld-diagram.c index 3aae65d..0075850 100644 --- a/liblogdiag/ld-diagram.c +++ b/liblogdiag/ld-diagram.c @@ -461,8 +461,7 @@ serialize_diagram (LdDiagram *self) json_node_take_object (root_node, root_object); objects_array = json_array_new (); - iter = g_list_last (self->priv->objects); - for (; iter; iter = g_list_previous (iter)) + for (iter = self->priv->objects; iter; iter = g_list_next (iter)) json_array_add_element (objects_array, serialize_object (LD_DIAGRAM_OBJECT (iter->data))); |