From 2131befd7a3b83086ea692527440b86f5fda53c7 Mon Sep 17 00:00:00 2001 From: Faustino Kialungila Date: Mon, 24 Feb 2020 15:35:56 +0100 Subject: [PATCH] Fix pasting styles on text elements (#833) --- src/actions/actionStyles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/actionStyles.ts b/src/actions/actionStyles.ts index 079412f4..c6c37fbe 100644 --- a/src/actions/actionStyles.ts +++ b/src/actions/actionStyles.ts @@ -43,7 +43,7 @@ export const actionPasteStyles: Action = { roughness: pastedElement?.roughness, }; if (isTextElement(newElement)) { - newElement.font = pastedElement?.font; + newElement.font = pastedElement?.font || "20px Virgil"; redrawTextBoundingBox(newElement); } return newElement;