[libgxps] Fix assertion that fails when building the outline for some documents
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgxps] Fix assertion that fails when building the outline for some documents
- Date: Sun, 5 Sep 2010 18:26:43 +0000 (UTC)
commit 562902f96499d4ad59f69c966e4d0feef3289420
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sun Sep 5 20:24:52 2010 +0200
Fix assertion that fails when building the outline for some documents
libgxps/gxps-document-structure.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgxps/gxps-document-structure.c b/libgxps/gxps-document-structure.c
index 5de7c70..b977b31 100644
--- a/libgxps/gxps-document-structure.c
+++ b/libgxps/gxps-document-structure.c
@@ -230,7 +230,7 @@ outline_start_element (GMarkupParseContext *context,
break;
}
}
- g_assert (level > 1 && node->parent != NULL);
+ g_assert (level == 1 || (level > 1 && node->parent != NULL));
} else if (ctx->level == level) {
/* Same level, parent must be the same as the previous node */
node->parent = (ctx->prevs) ? ((OutlineNode *)ctx->prevs->data)->parent : NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]