Skip to content
Permalink
Browse files

fixes 0003427: Measurement tool measures wrongly

  • Loading branch information...
wwmayer committed Sep 26, 2018
1 parent dd492d7 commit 57cc33c8eeafbf764e0b6d0b4fc2e1b427ccf6e3
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/Mod/Part/Gui/TaskDimension.cpp
@@ -91,9 +91,12 @@ bool PartGui::getShapeFromStrings(TopoDS_Shape &shapeOut, const std::string &doc
Part::Feature *feature = dynamic_cast<Part::Feature *>(objectPointer);
if (!feature)
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)
shapeOut = feature->Shape.getShape().getSubShape(sub.c_str());
shapeOut = topoShape.getSubShape(sub.c_str());
if (shapeOut.IsNull())
return false;
return true;

0 comments on commit 57cc33c

Please sign in to comment.
You can’t perform that action at this time.