72,7 → 72,7 |
horizontalStdG.append(value); |
if (UndoManager::undoEnabled()) |
{ |
SimpleState* ss = new SimpleState(Um::AddVGuide, 0, Um::IGuides); |
SimpleState* ss = new SimpleState(Um::AddHGuide, 0, Um::IGuides); |
ss->set("ADD_H", value); |
undoManager->action(m_page, ss); |
} |
152,7 → 152,7 |
horizontalStdG.removeAt(horizontalStdG.indexOf(value)); |
if (UndoManager::undoEnabled()) |
{ |
SimpleState* ss = new SimpleState(Um::DelVGuide, 0, Um::IGuides); |
SimpleState* ss = new SimpleState(Um::DelHGuide, 0, Um::IGuides); |
ss->set("REMOVE_H", value); |
undoManager->action(m_page, ss); |
} |
344,7 → 344,7 |
{ |
for (int i = 0; i < horizontalStdG.count(); ++i) |
{ |
SimpleState* ss = new SimpleState(Um::DelVGuide, 0, Um::IGuides); |
SimpleState* ss = new SimpleState(Um::DelHGuide, 0, Um::IGuides); |
ss->set("REMOVE_H", horizontalStdG[i]); |
undoManager->action(m_page, ss); |
} |
411,7 → 411,7 |
horizontalStdG.append(to); |
if (UndoManager::undoEnabled()) |
{ |
SimpleState* ss = new SimpleState(Um::MoveVGuide, 0, Um::IGuides); |
SimpleState* ss = new SimpleState(Um::MoveHGuide, 0, Um::IGuides); |
ss->set("MOVE_H_FROM", from); |
ss->set("MOVE_H_TO", to); |
undoManager->action(m_page, ss); |