Sketcher: skip root cross axes in vertex counting (fixes closing polylines)

This commit is contained in:
logari81 2012-07-09 14:00:18 +02:00
parent c099e90d99
commit 044990333c

View File

@ -1327,8 +1327,10 @@ void SketchObject::rebuildVertexIndex(void)
int imax=getHighestCurveIndex();
int i=0;
const std::vector< Part::Geometry * > geometry = getCompleteGeometry();
if (geometry.size() <= 2)
return;
for (std::vector< Part::Geometry * >::const_iterator it = geometry.begin();
it != geometry.end(); ++it) {
it != geometry.end()-2; ++it) {
if ((*it)->getTypeId() == Part::GeomPoint::getClassTypeId()) {
VertexId2GeoId.push_back(i);
VertexId2PosId.push_back(start);