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