Fix various typos and whitespace
This commit is contained in:
@@ -362,7 +362,7 @@ void ExtrusionHelper::checkInnerWires(std::vector<bool>& isInnerWire, const gp_D
|
||||
}
|
||||
if (saveIsInnerWireIterator == *isInnerWireIterator)
|
||||
// nothing was changed and we can remove it from the list to be checked
|
||||
// but we cannot do this before the foor loop was fully run
|
||||
// but we cannot do this before the for loop was fully run
|
||||
toDisable[outer] = true;
|
||||
++isInnerWireIterator;
|
||||
++toCheckIterator;
|
||||
|
||||
@@ -635,7 +635,7 @@ void DlgFilletEdges::setupFillet(const std::vector<App::DocumentObject*>& objs)
|
||||
* will do the check
|
||||
*
|
||||
// If sub-objects are already selected then only add the un-selected parts.
|
||||
// This is impotant to avoid recursive calls of rmvSelection() which
|
||||
// This is important to avoid recursive calls of rmvSelection() which
|
||||
// invalidates the internal iterator (#0002200).
|
||||
if (selIt != selObj.end()) {
|
||||
std::vector<std::string> selElements = selIt->getSubNames();
|
||||
|
||||
@@ -48,14 +48,14 @@ class TopoShapeListTest(unittest.TestCase):
|
||||
self.assertLessEqual(error, maxError, "TopoShapeList entry 1 has wrong volume: {0}".format(boxes[1].Volume))
|
||||
error = abs(3.0 - boxes[2].Volume)
|
||||
self.assertLessEqual(error, maxError, "TopoShapeList entry 2 has wrong volume: {0}".format(boxes[2].Volume))
|
||||
|
||||
|
||||
twoboxes = [boxes[1], boxes[2]]
|
||||
doc.openTransaction("Change shapes")
|
||||
obj.Shapes = twoboxes
|
||||
doc.commitTransaction()
|
||||
doc.commitTransaction()
|
||||
self.assertEqual(len(obj.Shapes), 2, "TopoShapeList has wrong entry count (1): {0}".format(len(obj.Shapes)))
|
||||
|
||||
doc.undo()
|
||||
|
||||
|
||||
self.assertEqual(len(obj.Shapes), 3, "TopoShapeList has wrong entry count (2): {0}".format(len(obj.Shapes)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user