summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/spiro-converters.cpp6
-rw-r--r--src/live_effects/spiro-converters.h6
-rw-r--r--src/live_effects/spiro.h6
3 files changed, 9 insertions, 9 deletions
diff --git a/src/live_effects/spiro-converters.cpp b/src/live_effects/spiro-converters.cpp
index 3c7bdf99e..f116d5256 100644
--- a/src/live_effects/spiro-converters.cpp
+++ b/src/live_effects/spiro-converters.cpp
@@ -64,7 +64,11 @@ ConverterSPCurve::curveto(double x1, double y1, double x2, double y2, double x3,
}
-
+ConverterPath::ConverterPath(Geom::Path &path)
+ : _path(path)
+{
+ _path.setStitching(true);
+}
void
ConverterPath::moveto(double x, double y, bool is_open)
diff --git a/src/live_effects/spiro-converters.h b/src/live_effects/spiro-converters.h
index 83f6ebbc3..90855d2d6 100644
--- a/src/live_effects/spiro-converters.h
+++ b/src/live_effects/spiro-converters.h
@@ -25,7 +25,7 @@ class ConverterSPCurve : public ConverterBase {
public:
ConverterSPCurve(SPCurve &curve)
: _curve(curve)
- {} ;
+ {}
virtual void moveto(double x, double y, bool is_open);
virtual void lineto(double x, double y);
@@ -45,9 +45,7 @@ private:
*/
class ConverterPath : public ConverterBase {
public:
- ConverterPath(Geom::Path &path)
- : _path(path)
- {} ;
+ ConverterPath(Geom::Path &path);
virtual void moveto(double x, double y, bool is_open);
virtual void lineto(double x, double y);
diff --git a/src/live_effects/spiro.h b/src/live_effects/spiro.h
index 0d85da74b..066b44ca8 100644
--- a/src/live_effects/spiro.h
+++ b/src/live_effects/spiro.h
@@ -25,11 +25,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
#define INKSCAPE_SPIRO_H
#include "live_effects/spiro-converters.h"
+#include <2geom/forward.h>
class SPCurve;
-namespace Geom {
- class Path;
-}
namespace Spiro {
@@ -53,4 +51,4 @@ double get_knot_th(const spiro_seg *s, int i);
} // namespace Spiro
-#endif // INKSCAPE_SPIRO_H \ No newline at end of file
+#endif // INKSCAPE_SPIRO_H