From 180c48d17d93aa991805bc59f2fa601d21784694 Mon Sep 17 00:00:00 2001 From: Juraj Andris Date: Thu, 12 Oct 2023 14:53:15 +0200 Subject: [PATCH] Fix incorrectly added outline to the entered text Fix #189 --- js/text.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/text.js b/js/text.js index c021246..dcfad51 100644 --- a/js/text.js +++ b/js/text.js @@ -202,6 +202,7 @@ export default class TextTool { apply() { const origBorder = this.input.style.border; + const origOutline = this.input.style.outline; const scale = this.main.getScale(); this.input.style.border = 'none'; domtoimage.toPng(this.input, { @@ -218,6 +219,7 @@ export default class TextTool { img.onload = () => { this.ctx.drawImage(img, this.scaledCord[0], this.scaledCord[1]); this.input.style.border = origBorder; + this.input.style.outline = origOutline; this.close(); this.main.worklog.captureState(); this.main.closeActiveTool();