Merge pull request #577 from SVG-Edit/issues/200

master
JFH 2021-06-08 12:22:34 +02:00 committed by GitHub
commit 2c15678e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -456,10 +456,13 @@ class TopPanel {
* @returns {void}
*/
clickUndo() {
const { undoMgr } = this.editor.svgCanvas;
const { undoMgr, textActions } = this.editor.svgCanvas;
if (undoMgr.getUndoStackSize() > 0) {
undoMgr.undo();
this.editor.layersPanel.populateLayers();
if(this.editor.svgCanvas.getMode() === 'textedit') {
textActions.clear();
}
}
}