undo should be applied backwards...
This commit is contained in:
parent
60a5ff3b9f
commit
b6bdcd264f
@ -206,8 +206,8 @@ public:
|
||||
|
||||
virtual void undo(SyncDocument *data)
|
||||
{
|
||||
std::list<Command*>::iterator it;
|
||||
for (it = commands.begin(); it != commands.end(); ++it) (*it)->undo(data);
|
||||
std::list<Command*>::reverse_iterator it;
|
||||
for (it = commands.rbegin(); it != commands.rend(); ++it) (*it)->undo(data);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user