Draft: fixed tstroke error in get_svg

This commit is contained in:
Yorik van Havre
2022-01-25 11:16:44 +01:00
parent cbc60a3f44
commit e6b7c0e5f9

View File

@@ -474,11 +474,13 @@ def get_svg(obj,
plane = direction
stroke = "#000000"
tstroke = stroke
if color and override:
if "#" in color:
stroke = color
else:
stroke = utils.get_rgb(color)
tstroke = stroke
elif App.GuiUp:
# find print color
pc = get_print_color(obj)
@@ -492,9 +494,6 @@ def get_svg(obj,
stroke = utils.get_rgb(obj.ViewObject.TextColor)
if hasattr(obj.ViewObject, "TextColor"):
tstroke = utils.get_rgb(obj.ViewObject.TextColor)
else:
tstroke = stroke
lstyle = "none"
if override: