aboutsummaryrefslogtreecommitdiffstats
path: root/common/svg.cc
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2022-02-04 09:03:36 +1000
committerYRabbit <rabbit@yrabbit.cyou>2022-02-04 09:03:36 +1000
commiteb5d3b3197b18b9bc3990dac85faee63f17f3f16 (patch)
tree71bb36fd895b888c1a01ea044b3ad4587d07ce9d /common/svg.cc
parent604260a0d7344627cea82198512384319c705105 (diff)
parent5007cd3603d71f10924bb97acfe42d50d2ebcbd4 (diff)
downloadnextpnr-eb5d3b3197b18b9bc3990dac85faee63f17f3f16.tar.gz
nextpnr-eb5d3b3197b18b9bc3990dac85faee63f17f3f16.tar.bz2
nextpnr-eb5d3b3197b18b9bc3990dac85faee63f17f3f16.zip
Merge branch 'master' into diff-locations
Diffstat (limited to 'common/svg.cc')
-rw-r--r--common/svg.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/svg.cc b/common/svg.cc
index d2050843..c5e2ea36 100644
--- a/common/svg.cc
+++ b/common/svg.cc
@@ -57,6 +57,8 @@ struct SVGWriter
switch (el.type) {
case GraphicElement::TYPE_LINE:
case GraphicElement::TYPE_ARROW:
+ case GraphicElement::TYPE_LOCAL_LINE:
+ case GraphicElement::TYPE_LOCAL_ARROW:
out << stringf("<line x1=\"%f\" y1=\"%f\" x2=\"%f\" y2=\"%f\" stroke=\"%s\"/>", (el.x1 + dxy.x) * scale,
(el.y1 + dxy.y) * scale, (el.x2 + dxy.x) * scale, (el.y2 + dxy.y) * scale,
get_stroke_colour(el.style))