fix CIDs 154877, 154878, 154879, 154880, 154881, 154882, 154885

This commit is contained in:
wmayer
2016-12-18 12:15:26 +01:00
parent 824e6f64f1
commit 90b9ba81cf
3 changed files with 7 additions and 7 deletions

View File

@@ -212,7 +212,7 @@ int Sketch::addGeometry(const Part::Geometry *geo, bool fixed)
// create the definition struct for that geom
return addArcOfEllipse(*aoe, fixed);
} else if (geo->getTypeId() == GeomArcOfHyperbola::getClassTypeId()) { // add an arc of hyperbola
const GeomArcOfHyperbola *aoh = dynamic_cast<const GeomArcOfHyperbola*>(geo);
const GeomArcOfHyperbola *aoh = static_cast<const GeomArcOfHyperbola*>(geo);
// create the definition struct for that geom
return addArcOfHyperbola(*aoh, fixed);
} else {