Skip to content

Commit

Permalink
Fix tspan with --text-as-text
Browse files Browse the repository at this point in the history
  • Loading branch information
aziesemer committed Nov 26, 2018
1 parent 1a20a34 commit 58ac97c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cairosvg/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"""

import io
import copy

import cairocffi as cairo

Expand Down Expand Up @@ -382,8 +383,8 @@ def draw(self, node):
self.context.clip()
self.context.set_fill_rule(cairo.FILL_RULE_WINDING)

save_cursor = (self.cursor_position, self.cursor_d_position,
self.text_path_width)
save_cursor = copy.deepcopy((self.cursor_position, self.cursor_d_position,
self.text_path_width))

# Only draw known tags
if node.tag in TAGS:
Expand Down

0 comments on commit 58ac97c

Please sign in to comment.