PD: [skip ci] AddressSanitizer: stack-use-after-scope

Axis() returns a tmp. object and thus we cannot use a const reference to get its Location() method
This commit is contained in:
wmayer
2021-02-23 13:57:51 +01:00
parent 786e98e374
commit eed7357674

View File

@@ -1696,7 +1696,7 @@ App::DocumentObjectExecReturn *Hole::execute(void)
Handle(Geom_Circle) circle = Handle(Geom_Circle)::DownCast(c);
const gp_Pnt& loc = circle->Axis().Location();
gp_Pnt loc = circle->Axis().Location();
gp_Trsf sketchTransformation;
gp_Trsf localSketchTransformation;