From 211bb9778975289e270f3710692d64a0a825cab9 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Fri, 6 Sep 2013 23:09:07 +0100 Subject: Fix problem with object dirty flag There is the possibility of marking an object dirty via one indirection and testing it via another. This patch ensures that is handled correctly. The scenario occurred within calc.pdf and stopped the update of the display field. --- source/pdf/pdf-object.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/pdf') diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c index 704a71df..c434b46e 100644 --- a/source/pdf/pdf-object.c +++ b/source/pdf/pdf-object.c @@ -1286,6 +1286,7 @@ pdf_obj_memo(pdf_obj *obj, int *memo) int pdf_obj_is_dirty(pdf_obj *obj) { + RESOLVE(obj); if (!obj) return 0; return !!(obj->flags & PDF_FLAGS_DIRTY); @@ -1293,6 +1294,7 @@ int pdf_obj_is_dirty(pdf_obj *obj) void pdf_dirty_obj(pdf_obj *obj) { + RESOLVE(obj); if (!obj) return; obj->flags |= PDF_FLAGS_DIRTY; -- cgit v1.2.3