diff options
| author | root <root@jtx.marker.es> | 2013-09-26 20:30:21 +0000 |
|---|---|---|
| committer | root <root@jtx.marker.es> | 2013-09-26 20:30:21 +0000 |
| commit | 264ef999acc789934e0e3956e953fddbc796d8b1 (patch) | |
| tree | e842cea47c58a328b6f3e7d35fe9bbc7c1c074e7 /src/dyna-draw-context.cpp | |
| parent | Fixing ending selection (diff) | |
| parent | Fix for Bug #1229605 (inkscape crashes when canceled import pdf). (diff) | |
| download | inkscape-264ef999acc789934e0e3956e953fddbc796d8b1.tar.gz inkscape-264ef999acc789934e0e3956e953fddbc796d8b1.zip | |
update to trunk
(bzr r12588.1.7)
Diffstat (limited to 'src/dyna-draw-context.cpp')
| -rw-r--r-- | src/dyna-draw-context.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/dyna-draw-context.cpp b/src/dyna-draw-context.cpp index 3e35c0ac1..01f71f76a 100644 --- a/src/dyna-draw-context.cpp +++ b/src/dyna-draw-context.cpp @@ -38,6 +38,7 @@ #include <2geom/math-utils.h> #include <2geom/pathvector.h> #include <2geom/bezier-utils.h> +#include <2geom/circle.h> #include "display/curve.h" #include <glib.h> #include "macros.h" @@ -151,17 +152,11 @@ void SPDynaDrawContext::setup() { g_signal_connect(G_OBJECT(this->currentshape), "event", G_CALLBACK(sp_desktop_root_handler), this->desktop); { - /* TODO: this can be done either with an arcto, and should maybe also be put in a general file (other tools use this as well) */ - SPCurve *c = new SPCurve(); + /* TODO: have a look at SPDropperContext::setup where the same is done.. generalize? */ + Geom::PathVector path; + Geom::Circle(0, 0, 1).getPath(path); - 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(); + SPCurve *c = new SPCurve(path); this->hatch_area = sp_canvas_bpath_new(sp_desktop_controls(this->desktop), c); |
