@@ -508,10 +508,10 @@ function cardString(template, components, isCardTool, artShapeStyle, categoryLay
508508 }
509509
510510 if (hasArt) {
511− code += 'readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);\n';
512−
513511 var artShapeAspect;
514512 if (isCardTool) {
513+ code += 'readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);\n';
514+
515515 var artShapeAspect = components["art"] && components["art"]["aspect-ratio"] || 1;
516516 if (isNaN(artShapeAspect)) {
517517 artShapeAspect = 1;
@@ -575,7 +575,7 @@ function cardString(template, components, isCardTool, artShapeStyle, categoryLay
575575 .arg(artShapeHolderShapeCode)
576576 .arg(fallbackStatusCode)
577577 .arg(fallbackURICode);
578− } else {
578+ } else if (isCardTool) {
579579 code += 'readonly property size artShapeSize: Qt.size(-1, -1);\n'
580580 }
581581