summaryrefslogtreecommitdiffstats
path: root/src/spray-context.cpp
diff options
context:
space:
mode:
authorroot <root@jtx.marker.es>2013-09-26 20:30:21 +0000
committerroot <root@jtx.marker.es>2013-09-26 20:30:21 +0000
commit264ef999acc789934e0e3956e953fddbc796d8b1 (patch)
treee842cea47c58a328b6f3e7d35fe9bbc7c1c074e7 /src/spray-context.cpp
parentFixing ending selection (diff)
parentFix for Bug #1229605 (inkscape crashes when canceled import pdf). (diff)
downloadinkscape-264ef999acc789934e0e3956e953fddbc796d8b1.tar.gz
inkscape-264ef999acc789934e0e3956e953fddbc796d8b1.zip
update to trunk
(bzr r12588.1.7)
Diffstat (limited to 'src/spray-context.cpp')
-rw-r--r--src/spray-context.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/spray-context.cpp b/src/spray-context.cpp
index 08dc59bce..fd9aff196 100644
--- a/src/spray-context.cpp
+++ b/src/spray-context.cpp
@@ -55,6 +55,7 @@
#include "display/canvas-arena.h"
#include "display/curve.h"
#include "livarot/Shape.h"
+#include <2geom/circle.h>
#include <2geom/transforms.h>
#include "preferences.h"
#include "style.h"
@@ -212,14 +213,11 @@ void SPSprayContext::setup() {
{
/* TODO: have a look at sp_dyna_draw_context_setup where the same is done.. generalize? at least make it an arcto! */
- SPCurve *c = new SPCurve();
- const double C1 = 0.552;
- c->moveto(-1,0);
- c->curveto(-1, C1, -C1, 1, 0, 1 );
- c->curveto(C1, 1, 1, C1, 1, 0 );
- c->curveto(1, -C1, C1, -1, 0, -1 );
- c->curveto(-C1, -1, -1, -C1, -1, 0 );
- c->closepath();
+ Geom::PathVector path;
+ Geom::Circle(0, 0, 1).getPath(path);
+
+ SPCurve *c = new SPCurve(path);
+
this->dilate_area = sp_canvas_bpath_new(sp_desktop_controls(this->desktop), c);
c->unref();
sp_canvas_bpath_set_fill(SP_CANVAS_BPATH(this->dilate_area), 0x00000000,(SPWindRule)0);