| Summary: | Redo-history is cleared after undoing a single relocate operation via Ctrl+Z. | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Matthias Wienand <matthias.wienand> |
| Component: | GEF MVC | Assignee: | Matthias Wienand <matthias.wienand> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 0.1.0 | ||
| Target Milestone: | 3.10.1 (Mars SR1) M1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Matthias Wienand
I investigated further and found that an open execution transaction during undo causes the bug. When pressing Ctrl, the FXTypeTool opens an execution transaction. Then, when pressing Ctrl+Z, the undo is performed, but results in NOT OK, because an operation is currently open. Therefore, we should probably register a listener for operation history events within AbstractDomain, and close a currently open (but empty) execution transaction upon the #notifyAboutToUndo() event. If the currently open execution transaction already contains operations, an exception can be thrown. I added an operation history listener within AbstractDomain that closes a currently open and empty execution transaction upon the OperationHistoryEvent#ABOUT_TO_UNDO. If a currently open execution transaction already contains operations, an exception is thrown. The code is published on the master branch, therefore I resolve this ticket as fixed for 3.10.1M1. |