summaryrefslogtreecommitdiff
path: root/tree
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-29 16:15:08 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-29 16:15:08 +0100
commit9a36550815c3d874ce62650bf06ee85a3f705f1c (patch)
treecc45ee69f0eca20520b388c44909703142c9196a /tree
parentfa0b09e3a0c696069033195a394b09d30a8c0573 (diff)
downloadmupdf-9a36550815c3d874ce62650bf06ee85a3f705f1c.tar.xz
shift things about a bit
Diffstat (limited to 'tree')
-rw-r--r--tree/optimize.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tree/optimize.c b/tree/optimize.c
index b65a37ca..cbb9ad31 100644
--- a/tree/optimize.c
+++ b/tree/optimize.c
@@ -181,6 +181,14 @@ retry:
shape = current->first;
color = shape->next;
+ if (color == nil)
+ {
+ fz_removenode(current);
+ prev = nil;
+ current = node->first;
+ goto retry;
+ }
+
if (fz_ispathnode(shape))
{
if (getrect((fz_pathnode*)shape, &bbox))