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

This commit is contained in:
JFH
2021-06-08 12:22:34 +02:00
committed by GitHub

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();
}
}
}