From 6c59345d847f86a101898f8e5a475501ff1de1a4 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 28 Nov 2003 13:38:25 +0000 Subject: * (Invalidate): Fixed a problem in the invalidation code: an INV_TRANSFO registered with an item prevented the registration of other more specific reasons. The text item exhibited the symptom when interleaving a text modification between two changes of its transform. In this case INV_TRANSFO prevented the registering of INV_LAYOUT. --- generic/Item.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/generic/Item.c b/generic/Item.c index e971919..6301dcd 100644 --- a/generic/Item.c +++ b/generic/Item.c @@ -2205,9 +2205,14 @@ static void Invalidate(ZnItem item, int reason) { - if (ISSET(item->inv_flags, ZN_TRANSFO_FLAG)) { + /* + * Why this test has to be so an abrupt shortcut ? + * It precludes addition of meaningful reasons + * by subsequent invalidations . + * + if (ISSET(item->inv_flags, ZN_TRANSFO_FLAG)) { return; - } + }*/ if (ISSET(reason, ZN_COORDS_FLAG) || ISSET(reason, ZN_TRANSFO_FLAG)) { -- cgit v1.1