Spreadsheet: Fixed undo/redo (issue #2483).

This commit is contained in:
Eivind Kvedalen
2016-04-04 19:57:25 +02:00
parent be63f43e2e
commit 7a58bead5c
4 changed files with 29 additions and 17 deletions

View File

@@ -130,14 +130,14 @@ bool SheetView::onMsg(const char *pMsg, const char **ppReturn)
getGuiDocument()->undo(1);
App::Document* doc = getAppDocument();
if (doc)
doc->recomputeFeature(sheet);
doc->recompute();
return true;
}
else if(strcmp("Redo",pMsg) == 0 ) {
getGuiDocument()->redo(1);
App::Document* doc = getAppDocument();
if (doc)
doc->recomputeFeature(sheet);
doc->recompute();
return true;
}
else if (strcmp("Save",pMsg) == 0) {