Skip to content

Commit

Permalink
fix(packages): Fix measurement-to-number issue in SVG
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens authored and alerque committed Jul 16, 2020
1 parent e86d7be commit 168dffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ local pushSVG = function (string, desiredHeight, em, drop)
SILE.outputter.moveTo(typesetter.frame.state.cursorX, typesetter.frame.state.cursorY)
local x,y = SILE.outputter.cursor()
y = y - SILE.documentState.paperSize[2] + (drop and 0 or height)
pdf.add_content(scalefactor.." 0 0 "..-(scalefactor).." "..x.." "..y.." cm")
pdf.add_content(scalefactor:tonumber() .." 0 0 "..-(scalefactor:tonumber()).." "..x.." "..(y:tonumber()).." cm")
pdf.add_content(figure)
pdf.add_content("Q")
typesetter.frame:advanceWritingDirection(self.width)
Expand Down

0 comments on commit 168dffc

Please sign in to comment.