summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-09-12 11:36:58 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2010-09-12 11:36:58 +0200
commitdfc6ea7877635212aa7c5f7ade07af4aa9467e96 (patch)
treeb7e8c1ca67b3a02f1d7a270e5da8d0d0640707a3 /glib
parent7574912b6c0ff0421c69b6e8c6835957d5126d7d (diff)
[glib] Fix layers array generation when it contains multiple arrays
Fixes layers for document attached to bug #30106.
Diffstat (limited to 'glib')
-rw-r--r--glib/poppler-document.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc
index 680c8de8..2762881d 100644
--- a/glib/poppler-document.cc
+++ b/glib/poppler-document.cc
@@ -1646,6 +1646,7 @@ get_optional_content_items_sorted (OCGs *ocg, Layer *parent, Array *order)
items = g_list_prepend (items, last_item);
}
last_item->kids = get_optional_content_items_sorted (ocg, last_item, orderItem.getArray ());
+ last_item = NULL;
} else if (orderItem.isString ()) {
last_item->label = _poppler_goo_string_to_utf8 (orderItem.getString ());
}