Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/UndoStack.cpp @ 1029:0f100d0b9caf
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Oct 2019 21:58:30 +0200 |
parents | ac88989817e3 |
children | 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
1028:6d5382fa45e1 | 1029:0f100d0b9caf |
---|---|
27 namespace OrthancStone | 27 namespace OrthancStone |
28 { | 28 { |
29 UndoStack::UndoStack() : numAppliedCommands_(0) | 29 UndoStack::UndoStack() : numAppliedCommands_(0) |
30 {} | 30 {} |
31 | 31 |
32 void UndoStack::PushCommand(boost::shared_ptr<TrackerCommand> command) | 32 void UndoStack::PushCommand(boost::shared_ptr<MeasureCommand> command) |
33 { | 33 { |
34 commandStack_.erase( | 34 commandStack_.erase( |
35 commandStack_.begin() + numAppliedCommands_, | 35 commandStack_.begin() + numAppliedCommands_, |
36 commandStack_.end()); | 36 commandStack_.end()); |
37 | 37 |