浏览代码

Fix pasting styles on text elements (#833)

Faustino Kialungila 5 年之前
父节点
当前提交
2131befd7a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/actions/actionStyles.ts

+ 1 - 1
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;