Skip to content

Commit

Permalink
fix: canvas text empty shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
harperKKK committed Nov 9, 2023
1 parent 63a39ae commit 4b31178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/js/elements/canvasElements/CVTextElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ CVTextElement.prototype.buildNewText = function () {
yPos += firstLine ? 1 : 0;
firstLine = false;
}
shapes = shapeData.shapes ? shapeData.shapes[0].it : [];
shapes = shapeData.shapes && shapeData.shapes[0] ? shapeData.shapes[0].it : [];
jLen = shapes.length;
matrixHelper.scale(documentData.finalSize / 100, documentData.finalSize / 100);
if (singleShape) {
Expand Down

0 comments on commit 4b31178

Please sign in to comment.