[Part] [skip CI] SectionCutting: silence MSVC compiler warning

- also fix a typo
This commit is contained in:
Uwe
2022-07-30 00:20:30 +02:00
parent abaee2d0fe
commit 922f6b83d6

View File

@@ -42,6 +42,7 @@
#include <App/Document.h>
#include <App/Link.h>
#include <App/Part.h>
#include <Base/Console.h>
#include <Base/UnitsApi.h>
#include <Gui/Application.h>
#include <Gui/Command.h>
@@ -1136,7 +1137,7 @@ void SectionCut::onCutYvalueChanged(double val)
pcCut->recomputeFeature(true);
// refresh X limits
// this is done by
// first making the cut X box visible, the setting the limits only for X
// first making the cut X box visible, then setting the limits only for X
// if x-limit in box direction is larger than object, reset value to saved limit
if (hasBoxX) {
auto CutBoxX = doc->getObject(BoxXName);
@@ -1229,7 +1230,7 @@ void SectionCut::onCutZvalueChanged(double val)
pcCut->recomputeFeature(true);
// refresh X and Y limits
// this is done e.g. for X by
// first making the cut X box visible, the setting the limits only for X
// first making the cut X box visible, then setting the limits only for X
// if x-limit in box direction is larger than object, reset value to saved limit
SbBox3f CutBoundingBox;
if (hasBoxX) {