fix coverity issues
This commit is contained in:
@@ -239,8 +239,10 @@ void ViewProviderFillet::updateData(const App::Property* prop)
|
||||
if (hist.size() != 1)
|
||||
return;
|
||||
Part::Fillet* objFill = dynamic_cast<Part::Fillet*>(getObject());
|
||||
if (!objFill)
|
||||
return;
|
||||
Part::Feature* objBase = dynamic_cast<Part::Feature*>(objFill->Base.getValue());
|
||||
if (objFill && objBase) {
|
||||
if (objBase) {
|
||||
const TopoDS_Shape& baseShape = objBase->Shape.getValue();
|
||||
const TopoDS_Shape& fillShape = objFill->Shape.getValue();
|
||||
|
||||
@@ -342,8 +344,10 @@ void ViewProviderChamfer::updateData(const App::Property* prop)
|
||||
if (hist.size() != 1)
|
||||
return;
|
||||
Part::Chamfer* objCham = dynamic_cast<Part::Chamfer*>(getObject());
|
||||
if (!objCham)
|
||||
return;
|
||||
Part::Feature* objBase = dynamic_cast<Part::Feature*>(objCham->Base.getValue());
|
||||
if (objCham && objBase) {
|
||||
if (objBase) {
|
||||
const TopoDS_Shape& baseShape = objBase->Shape.getValue();
|
||||
const TopoDS_Shape& chamShape = objCham->Shape.getValue();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user