@@ -508,10 +508,10 @@ function cardString(template, components, isCardTool, artShapeStyle, categoryLay
510 if (hasArt) {
510 if (hasArt) {
511− code += 'readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);\n';
513 var artShapeAspect;
511 var artShapeAspect;
514 if (isCardTool) {
512 if (isCardTool) {
513+ code += 'readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);\n';
515 var artShapeAspect = components["art"] && components["art"]["aspect-ratio"] || 1;
515 var artShapeAspect = components["art"] && components["art"]["aspect-ratio"] || 1;
516 if (isNaN(artShapeAspect)) {
516 if (isNaN(artShapeAspect)) {
517 artShapeAspect = 1;
517 artShapeAspect = 1;
@@ -575,7 +575,7 @@ function cardString(template, components, isCardTool, artShapeStyle, categoryLay
575 .arg(artShapeHolderShapeCode)
575 .arg(artShapeHolderShapeCode)
576 .arg(fallbackStatusCode)
576 .arg(fallbackStatusCode)
577 .arg(fallbackURICode);
577 .arg(fallbackURICode);
578− } else {
578+ } else if (isCardTool) {
579 code += 'readonly property size artShapeSize: Qt.size(-1, -1);\n'
579 code += 'readonly property size artShapeSize: Qt.size(-1, -1);\n'