Procházet zdrojové kódy

Fix pasting styles on text elements (#833)

Faustino Kialungila před 5 roky
rodič
revize
2131befd7a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;