Skip to content

Commit

Permalink
Default text angle 0
Browse files Browse the repository at this point in the history
  • Loading branch information
daghovland committed Nov 5, 2024
1 parent a0ce52a commit 9c8a77e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion www/dexpisvg.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,14 @@
name="posY" select="Text/Position/Location/@Y" />
<xsl:variable
name="textRotationAngle">
<xsl:value-of select="Text/@TextAngle" />
<xsl:choose>
<xsl:when test="Text/@TextAngle">
<xsl:value-of select="Text/@TextAngle" />
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of
select="concat('rotate(', 360 - $textRotationAngle, ' ', $posX, ' ', $height - $posY, ')')" />
Expand Down

0 comments on commit 9c8a77e

Please sign in to comment.