Skip to content

Commit

Permalink
Sketcher: Bug fix addGeometry list creation and construction lines
Browse files Browse the repository at this point in the history
==================================================================

A recent improvement was to allow to create an object (several geometric elements) as construction lines
by providing an additional parameter as true (that defaults to false).

This introduced a bug, that when a list of geometries mixing construction and normal lines was added (with the parameter as false),
construction lines would be converted to normal lines.

This fixes the bug.
  • Loading branch information
abdullahtahiriyo authored and wwmayer committed Aug 30, 2015
1 parent 9583ce4 commit 927fca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/App/SketchObject.cpp
Expand Up @@ -489,7 +489,7 @@ int SketchObject::addGeometry(const std::vector<Part::Geometry *> &geoList, bool

std::vector< Part::Geometry * > newVals(vals);
for (std::vector<Part::Geometry *>::const_iterator it = geoList.begin(); it != geoList.end(); ++it) {
if((*it)->getTypeId() != Part::GeomPoint::getClassTypeId())
if(construction && (*it)->getTypeId() != Part::GeomPoint::getClassTypeId())
const_cast<Part::Geometry *>(*it)->Construction = construction;

newVals.push_back(*it);
Expand Down

0 comments on commit 927fca0

Please sign in to comment.