summaryrefslogtreecommitdiff
path: root/lib/svg
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2021-08-15 18:37:07 +0200
committerGitHub <noreply@github.com>2021-08-15 18:37:07 +0200
commit178c98b142c0db9e46de03991545a1259d5706bc (patch)
tree44a4026553bf619a0b8f37186a820b9940e7e351 /lib/svg
parent107c547e6ef71c943ecf7ad2596b8f2a61eb9459 (diff)
fix commands on multiple import (#1306)
Diffstat (limited to 'lib/svg')
-rw-r--r--lib/svg/rendering.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/svg/rendering.py b/lib/svg/rendering.py
index 7be1e8b0..2b638ebf 100644
--- a/lib/svg/rendering.py
+++ b/lib/svg/rendering.py
@@ -197,8 +197,8 @@ def color_block_to_paths(color_block, svg, destination, visual_commands):
add_commands(Stroke(destination[-1]), ["trim"])
color = color_block.color.visible_on_white.to_hex_str()
-
path = inkex.PathElement(attrib={
+ 'id': svg.get_unique_id("object"),
'style': "stroke: %s; stroke-width: 0.4; fill: none;" % color,
'd': "M" + " ".join(" ".join(str(coord) for coord in point) for point in point_list),
'transform': get_correction_transform(svg),