[TD]Python routines and extension for line formating

This commit is contained in:
wandererfan
2019-12-11 16:13:26 -05:00
committed by WandererFan
parent a71bc8f734
commit b54212f82c
11 changed files with 143 additions and 91 deletions

View File

@@ -627,7 +627,7 @@ PyObject* DrawViewPartPy::formatGeometricEdge(PyObject *args)
color = DrawUtil::pyTupleToColor(pColor);
DrawViewPart* dvp = getDrawViewPartPtr();
TechDraw::GeomFormat* gf = dvp->getGeomFormatByGeom(idx);
TechDraw::GeomFormat* gf = dvp->getGeomFormatBySelection(idx);
if (gf != nullptr) {
gf->m_format.m_style = style;
gf->m_format.m_color = color;