src/editHistory.cpp

changeset 1260
0347e9bc883e
parent 1147
a26568aa3cce
child 1269
ec691d9472b3
equal deleted inserted replaced
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();

mercurial