TechDraw: Fix reference counting in format attribute of CenterLinePy and CosmeticEdgePy
This commit is contained in:
@@ -116,7 +116,7 @@ Py::Dict CenterLinePy::getFormat() const
|
||||
|
||||
dict.setItem("style", Py::Long(format->m_style));
|
||||
dict.setItem("weight", Py::Float(format->m_weight));
|
||||
dict.setItem("color", Py::Tuple(DrawUtil::colorToPyTuple(format->m_color)));
|
||||
dict.setItem("color", Py::Tuple(DrawUtil::colorToPyTuple(format->m_color), true));
|
||||
dict.setItem("visible", Py::Boolean(format->m_visible));
|
||||
|
||||
return dict;
|
||||
|
||||
Reference in New Issue
Block a user