summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-02-16 23:23:51 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-02-16 23:23:51 +0000
commite6e262b34c193502d1f9be44324515bf8c861d47 (patch)
treec1042635d22ce5958933475be5984c413f9894c7
parentupdate to trunk (diff)
downloadinkscape-e6e262b34c193502d1f9be44324515bf8c861d47.tar.gz
inkscape-e6e262b34c193502d1f9be44324515bf8c861d47.zip
starting fillet/chamfer
(bzr r13645.1.15)
-rw-r--r--src/2geom/satellite.h2
-rw-r--r--src/live_effects/lpe-fillet-chamfer.cpp2
-rw-r--r--src/live_effects/lpe-fillet-chamfer.h1
-rw-r--r--src/live_effects/parameter/array.h1
4 files changed, 2 insertions, 4 deletions
diff --git a/src/2geom/satellite.h b/src/2geom/satellite.h
index 06b4a1dd6..a83de5af2 100644
--- a/src/2geom/satellite.h
+++ b/src/2geom/satellite.h
@@ -145,7 +145,7 @@ class Satellite
static const std::map<gchar const *,SatelliteType> GcharMapToSatelliteType;
- static double getOpositeTime(Geom::D2<Geom::SBasis> SBasisCurve, double time);
+ double getOpositeTime(Geom::D2<Geom::SBasis> SBasisCurve);
private:
diff --git a/src/live_effects/lpe-fillet-chamfer.cpp b/src/live_effects/lpe-fillet-chamfer.cpp
index df9de81b7..b34cd87a1 100644
--- a/src/live_effects/lpe-fillet-chamfer.cpp
+++ b/src/live_effects/lpe-fillet-chamfer.cpp
@@ -174,7 +174,7 @@ LPEFilletChamfer::doEffect_path(std::vector<Geom::Path> const &path_in)
bool last = curve_it2 == curve_endit;
std::vector<double> times;
times.push_back(filletChamferData[counter].second.getTime());
- times.push_back(filletChamferData[indexFix].second.getOpositeTime((*curve_it1).toSBasis(),filletChamferData[indexFix].second.getTime()));
+ times.push_back(filletChamferData[indexFix].second.getOpositeTime((*curve_it1).toSBasis()));
times.push_back(filletChamferData[indexFix].second.getTime());
Curve *knotCurve1 = curve_it1->portion(times[0], times[1]);
if (counterCurves > 0) {
diff --git a/src/live_effects/lpe-fillet-chamfer.h b/src/live_effects/lpe-fillet-chamfer.h
index 94a2bd2b3..2c0dfcaab 100644
--- a/src/live_effects/lpe-fillet-chamfer.h
+++ b/src/live_effects/lpe-fillet-chamfer.h
@@ -19,7 +19,6 @@
#include "live_effects/parameter/satellitepairarray.h"
#include "live_effects/effect.h"
-using namespace Geom;
namespace Inkscape {
namespace LivePathEffect {
diff --git a/src/live_effects/parameter/array.h b/src/live_effects/parameter/array.h
index c99777b08..8145d62a3 100644
--- a/src/live_effects/parameter/array.h
+++ b/src/live_effects/parameter/array.h
@@ -115,7 +115,6 @@ protected:
void writesvgData(SVGOStringStream &str, std::pair<int, Geom::Satellite> const &nVector) const {
str << nVector.first;
str << ",";
- std::map<Geom::SatelliteType, gchar const *> stg = nVector.second.SatelliteTypeToGcharMap;
str << nVector.second.getSatelliteTypeGchar();
str << "*";
str << nVector.second.getIsTime();