Fix layer initialisation for orphans (#1005)

* beautify with standard

* update dependencies

* name is created below so no need here

* initialize name before using it.
This commit is contained in:
JFH
2024-10-27 12:33:15 +01:00
committed by GitHub
parent 989f637e6c
commit 3607cc8d69
4 changed files with 1029 additions and 944 deletions

View File

@@ -852,7 +852,7 @@ class SvgCanvas {
// create new document
this.current_drawing_ = new draw.Drawing(this.svgContent)
// create empty first layer
this.createLayer('Layer 1')
this.createLayer()
// clear the undo stack
this.undoMgr.resetUndoStack()
// reset the selector manager