don't increase the swfid for shapes which are cancelled
[swftools.git] / lib / devices / swf.c
index 0c67c97..1ca808b 100644 (file)
@@ -1005,6 +1005,8 @@ void cancelshape(gfxdevice_t*dev)
     if(i->shape) {swf_ShapeFree(i->shape);i->shape=0;}
     i->shapeid = -1;
     i->bboxrectpos = -1;
+
+    i->currentswfid--;
 }
 
 void fixAreas(gfxdevice_t*dev)