Merge pull request #577 from SVG-Edit/issues/200
commit
2c15678e51
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue