1259:0384b1d49786 | 1260:0347e9bc883e |
---|---|
221 m_b (b) {} | 221 m_b (b) {} |
222 | 222 |
223 | 223 |
224 void SwapHistoryEntry::undo() const | 224 void SwapHistoryEntry::undo() const |
225 { | 225 { |
226 LDObject::fromID (m_a)->swap (LDObject::fromID (m_b)); | 226 parent()->document()->swapObjects(LDObject::fromID (m_a), LDObject::fromID (m_b)); |
227 } | 227 } |
228 | 228 |
229 void SwapHistoryEntry::redo() const | 229 void SwapHistoryEntry::redo() const |
230 { | 230 { |
231 undo(); | 231 undo(); |