commit | 2d00a8b7889e9a1d2a96dd1e4194a7b52daefd0a | [log] [tgz] |
---|---|---|
author | Florian Thienel <florian@thienel.org> | Thu Jun 27 21:57:16 2013 +0200 |
committer | Florian Thienel <florian@thienel.org> | Thu Jun 27 21:57:16 2013 +0200 |
tree | c99f5e3817fe60d40094f7bf620b66d5e97af160 | |
parent | 34e5ab00fc4ba7360908680ceb257cac6e3da673 [diff] |
do not reference IElement in ChangeAttributeEdit When an element is deleted, it gets dissociated from the document. While it can still be referenced by an ChangeAttributeEdit, it is useless for undo/redo, because its ContentRange gets lost when it is dissociated. Hence instead of referencing the element, the document and the current caret offset where the edit took place are stored in ChangeAttributeEdit. Signed-off-by: Florian Thienel <florian@thienel.org>