summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/tool/path-manipulator.cpp6
-rw-r--r--src/ui/tool/path-manipulator.h2
2 files changed, 2 insertions, 6 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index 1cc075603..f8cc58e3b 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -1206,11 +1206,7 @@ bool PathManipulator::isBSpline(bool recalculate){
if(recalculate){
BSplineSteps = this->BSplineGetSteps();
}
- bool isBSpline = false;
- if(BSplineSteps>0){
- isBSpline = true;
- }
- return isBSpline;
+ return BSplineSteps > 0;
}
// returns the corresponding strength to the position of a handler
diff --git a/src/ui/tool/path-manipulator.h b/src/ui/tool/path-manipulator.h
index 5186bfc95..594f56ff9 100644
--- a/src/ui/tool/path-manipulator.h
+++ b/src/ui/tool/path-manipulator.h
@@ -106,7 +106,7 @@ private:
typedef boost::shared_ptr<NodeList> SubpathPtr;
void _createControlPointsFromGeometry();
- bool isBSpline(bool recalculate);
+ bool isBSpline(bool recalculate = true);
double BSplineHandlePosition(Handle *h);
Geom::Point BSplineHandleReposition(Handle *h);
Geom::Point BSplineHandleReposition(Handle *h,double pos);