Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 4d2a09c

Browse files
committed
[[ Bug 22498 ]] Fix compiling of rotate(<pAngle>) in SVG elements
This patch fixes a bug where an incorrect transform would be created when compiling 'rotate(<pAngle>)' in the list of transforms of an SVG element.
1 parent 75ba271 commit 4d2a09c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/script-libraries/drawing/drawing.livecodescript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,9 +801,9 @@ private command _svgCompileTransform @xContext, pTransform, pBBox, @rCompiledTra
801801
put _svgTransformScale(tTransform[2], tTransform[3]) into tNextMatrix
802802
break
803803
case "rotate"
804-
put _svgTransformTranslate(-tTransform[3], -tTransform[4]) into tNextMatrix
804+
put _svgTransformTranslate(tTransform[3], tTransform[4]) into tNextMatrix
805805
put _svgTransformConcat(tNextMatrix, _svgTransformRotate(tTransform[2])) into tNextMatrix
806-
put _svgTransformConcat(tNextMatrix, _svgTransformTranslate(tTransform[3], tTransform[4])) into tNextMatrix
806+
put _svgTransformConcat(tNextMatrix, _svgTransformTranslate(-tTransform[3], -tTransform[4])) into tNextMatrix
807807
break
808808
case "skewX"
809809
put _svgTransformSkew(tTransform[2], 0) into tNextMatrix

0 commit comments

Comments
 (0)