aboutsummaryrefslogtreecommitdiff
path: root/generic/Item.c
diff options
context:
space:
mode:
authorlecoanet2003-11-28 13:38:25 +0000
committerlecoanet2003-11-28 13:38:25 +0000
commit6c59345d847f86a101898f8e5a475501ff1de1a4 (patch)
treedac78ccfbbaa6fbdaa5adf88fb1e2da17e166c17 /generic/Item.c
parent75fdd443cb5e2692503e0733a949f8b1f6ebccec (diff)
downloadtkzinc-6c59345d847f86a101898f8e5a475501ff1de1a4.zip
tkzinc-6c59345d847f86a101898f8e5a475501ff1de1a4.tar.gz
tkzinc-6c59345d847f86a101898f8e5a475501ff1de1a4.tar.bz2
tkzinc-6c59345d847f86a101898f8e5a475501ff1de1a4.tar.xz
* (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.
Diffstat (limited to 'generic/Item.c')
-rw-r--r--generic/Item.c9
1 files 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)) {