From 9a36550815c3d874ce62650bf06ee85a3f705f1c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 29 Nov 2004 16:15:08 +0100 Subject: shift things about a bit --- tree/optimize.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tree/optimize.c') 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)) -- cgit v1.2.3