Skip to content

Commit

Permalink
fixes 0003427: Measurement tool measures wrongly
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 26, 2018
1 parent dd492d7 commit 57cc33c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Mod/Part/Gui/TaskDimension.cpp
Expand Up @@ -91,9 +91,12 @@ bool PartGui::getShapeFromStrings(TopoDS_Shape &shapeOut, const std::string &doc
Part::Feature *feature = dynamic_cast<Part::Feature *>(objectPointer); Part::Feature *feature = dynamic_cast<Part::Feature *>(objectPointer);
if (!feature) if (!feature)
return false; return false;
shapeOut = feature->Shape.getValue(); Base::Placement placement = feature->globalPlacement();
Part::TopoShape topoShape = feature->Shape.getShape();
topoShape.setPlacement(placement);
shapeOut = topoShape.getShape();
if (sub.size() > 0) if (sub.size() > 0)
shapeOut = feature->Shape.getShape().getSubShape(sub.c_str()); shapeOut = topoShape.getSubShape(sub.c_str());
if (shapeOut.IsNull()) if (shapeOut.IsNull())
return false; return false;
return true; return true;
Expand Down

0 comments on commit 57cc33c

Please sign in to comment.