Clone the text's padding

This commit is contained in:
Olivier Terral
2019-09-06 12:16:04 +02:00
parent 5bff4c051e
commit 7c9ebf8b1b
2 changed files with 5 additions and 2 deletions

View File

@@ -184,7 +184,8 @@ class Text {
offsetX: this.getOffsetX(),
offsetY: this.getOffsetY(),
backgroundFill: this.getBackgroundFill() ? this.getBackgroundFill().clone() : undefined,
backgroundStroke: this.getBackgroundStroke() ? this.getBackgroundStroke().clone() : undefined
backgroundStroke: this.getBackgroundStroke() ? this.getBackgroundStroke().clone() : undefined,
padding: this.getPadding()
});
}