fix store/restore
Co-authored-by: @tonino
This commit is contained in:
parent
36651b8faa
commit
07deca39b1
1 changed files with 7 additions and 2 deletions
|
@ -169,13 +169,18 @@
|
|||
|
||||
<!-- Si la commande est un restore et que au moins 1 état est enregistré : -->
|
||||
<xsl:when test="local-name($current-command) = 'restore' and count($states) >= 1">
|
||||
<!-- On séléctionne notre state-->
|
||||
<!-- On séléctionne notre state (Revoir pourquoi ceci marche) -->
|
||||
<xsl:variable
|
||||
name="state" select="$states/state[1]" />
|
||||
<xsl:variable
|
||||
name="remaining-states"
|
||||
select="subsequence($states/state, 1, count($states/state) - 1)" />
|
||||
|
||||
<!-- Création de l'élément MOVETO avec les nouvelles coordonnées restaurées -->
|
||||
<MOVETO
|
||||
x="{format-number($states/state[last()]/@x, '#.######')}"
|
||||
y="{format-number($states/state[last()]/@y, '#.######')}" />
|
||||
|
||||
<xsl:call-template
|
||||
name="process-commands">
|
||||
<xsl:with-param
|
||||
|
|
Reference in a new issue