... |
... |
@@ -10,8 +10,8 @@ |
10 |
10 |
#set ($attachmentReference = $services.model.resolveAttachment($reference, 'explicit', $doc.documentReference)) |
11 |
11 |
#set ($reference = $xwiki.getAttachmentURL($services.model.serialize($attachmentReference.parent), $attachmentReference.name)) |
12 |
12 |
#end |
13 |
|
-#set ($width = $mathtool.toInteger($xcontext.macro.params.width)) |
14 |
|
-#set ($height = $mathtool.toInteger($xcontext.macro.params.height)) |
|
13 |
+#set ($width = $numbertool.toNumber($xcontext.macro.params.width).intValue()) |
|
14 |
+#set ($height = $numbertool.toNumber($xcontext.macro.params.height).intValue()) |
15 |
15 |
#set ($autostart = $xcontext.macro.params.autostart == 'true') |
16 |
16 |
#set ($repeat = $xcontext.macro.params.repeat == 'true') |
17 |
17 |
#set ($attributes = [ |