CompositeOperation problem?
Hey there,
I have a question concerning CompositeOperations and undo-ing them.
Imagine this example:
var c:CompositeOperation = new CompositeOperation();
var s:SelectionState = new SelectionState(textFlow,1,1);
c.addOperation(new InsertInlineGraphicOperation(s,'images/testgfx.gif','auto','auto',Float.NONE));
c.addOperation(new InsertInlineGraphicOperation(s,'images/testgfx.gif','auto','auto',Float.NONE));
c.addOperation(new InsertInlineGraphicOperation(s,'images/testgfx.gif','auto','auto',Float.NONE));
(textFlow.interactionManager as IEditManager).doOperation(c);
if I run this code it works like a charm, three images are added in a row.
Only after calling this:
(textFlow.interactionManager as IEditManager).undo();
The operations aren't being undone...
Am I doing something wrong, or is this a bug?
thanks a lot in advance,
Roland
