summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/path-manipulator.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-14 17:38:27 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-14 17:38:27 +0000
commiteb3102790b3c0eb1ce7131d2c4edceab5978ce88 (patch)
treee4b8ee490cfde5809da3b89eca4a866bf8ada2da /src/ui/tool/path-manipulator.cpp
parentdisabling cache approach for isBSpline function, pointed by Vinícius (diff)
downloadinkscape-eb3102790b3c0eb1ce7131d2c4edceab5978ce88.tar.gz
inkscape-eb3102790b3c0eb1ce7131d2c4edceab5978ce88.zip
simplify the code in isBSpline
(bzr r11950.1.297)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
-rw-r--r--src/ui/tool/path-manipulator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index adc70bc38..3e54acddf 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -1202,12 +1202,13 @@ int PathManipulator::BSplineGetSteps(){
// determines if the trace has bspline effect
bool PathManipulator::isBSpline(/*bool recalculate*/){
- /*static*/ int BSplineSteps = this->BSplineGetSteps();
// Taking out the static dont need this part
+ // static int BSplineSteps = this->BSplineGetSteps();
//if(recalculate){
// BSplineSteps = this->BSplineGetSteps();
//}
- return BSplineSteps > 0;
+ //return BSplineSteps > 0;
+ return this->BSplineGetSteps() > 0;
}
// returns the corresponding strength to the position of a handler