From 385efeeb589dc2b6c3046ace9c9df23a996ced0c Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 20 Feb 2021 22:46:51 +0100 Subject: [PATCH] Sketcher: [skip ci] fix bad static_cast --- src/Mod/Sketcher/App/SketchObject.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index ed8e0afda8..393af9c703 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -6224,9 +6224,9 @@ Part::Geometry* projectLine(const BRepAdaptor_Curve& curve, const Handle(Geom_Pl bool SketchObject::evaluateSupport(void) { - // returns false if the shape if broken, null or non-planar - Part::Feature *part = static_cast(Support.getValue()); - if (!part || !part->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) + // returns false if the shape is broken, null or non-planar + App::DocumentObject *link = Support.getValue(); + if (!link || !link->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) return false; return true; }