fix Coverity issues
This commit is contained in:
@@ -124,6 +124,8 @@ const std::list<gp_Trsf> MultiTransform::getTransformations(const std::vector<Ap
|
||||
// In other words, the length of the result vector is equal to the length of the
|
||||
// oldTransformations vector
|
||||
|
||||
if (newTransformations.empty())
|
||||
throw Base::Exception("Number of occurrences must be a divisor of previous number of occurrences");
|
||||
if (oldTransformations.size() % newTransformations.size() != 0)
|
||||
throw Base::Exception("Number of occurrences must be a divisor of previous number of occurrences");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user