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:35:31 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-14 17:35:31 +0000
commitf9d1d1a8a33eee7fd7977361d2d559697f0fb56d (patch)
treed8e937b99b8ee1ca384d10113a6cfcc7704514c4 /src/ui/tool/path-manipulator.cpp
parentupdate to trunk (diff)
downloadinkscape-f9d1d1a8a33eee7fd7977361d2d559697f0fb56d.tar.gz
inkscape-f9d1d1a8a33eee7fd7977361d2d559697f0fb56d.zip
disabling cache approach for isBSpline function, pointed by Vinícius
(bzr r11950.1.296)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
-rw-r--r--src/ui/tool/path-manipulator.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index f8cc58e3b..adc70bc38 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -145,7 +145,7 @@ PathManipulator::PathManipulator(MultiPathManipulator &mpm, SPPath *path,
sigc::hide( sigc::mem_fun(*this, &PathManipulator::_updateOutlineOnZoomChange)));
_createControlPointsFromGeometry();
- isBSpline(true);
+ isBSpline(/*true*/);
}
PathManipulator::~PathManipulator()
@@ -1201,11 +1201,12 @@ int PathManipulator::BSplineGetSteps(){
}
// determines if the trace has bspline effect
-bool PathManipulator::isBSpline(bool recalculate){
- static int BSplineSteps = this->BSplineGetSteps();
- if(recalculate){
- BSplineSteps = this->BSplineGetSteps();
- }
+bool PathManipulator::isBSpline(/*bool recalculate*/){
+ /*static*/ int BSplineSteps = this->BSplineGetSteps();
+ // Taking out the static dont need this part
+ //if(recalculate){
+ // BSplineSteps = this->BSplineGetSteps();
+ //}
return BSplineSteps > 0;
}
@@ -1282,7 +1283,7 @@ void PathManipulator::BSplineNodeHandlesReposition(Node *n){
void PathManipulator::_createGeometryFromControlPoints(bool alert_LPE)
{
Geom::PathBuilder builder;
- isBSpline(true);
+ isBSpline(/*true*/);
for (std::list<SubpathPtr>::iterator spi = _subpaths.begin(); spi != _subpaths.end(); ) {
SubpathPtr subpath = *spi;
if (subpath->empty()) {