summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pencil-tool.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2014-02-28 15:50:05 +0000
committerMartin Owens <doctormo@gmail.com>2014-02-28 15:50:05 +0000
commit1bc1b442d8ec6f394f456c4675d5ca7f6aa1d0d6 (patch)
tree0b4c86988abeb6c01b23324f159bd0a8a936f485 /src/ui/tools/pencil-tool.cpp
parentImproved uri testing (diff)
parentSpray tool: (diff)
downloadinkscape-1bc1b442d8ec6f394f456c4675d5ca7f6aa1d0d6.tar.gz
inkscape-1bc1b442d8ec6f394f456c4675d5ca7f6aa1d0d6.zip
Merge to trunk
(bzr r13047.1.7)
Diffstat (limited to 'src/ui/tools/pencil-tool.cpp')
-rw-r--r--src/ui/tools/pencil-tool.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/ui/tools/pencil-tool.cpp b/src/ui/tools/pencil-tool.cpp
index 52779d551..4fbaa50f3 100644
--- a/src/ui/tools/pencil-tool.cpp
+++ b/src/ui/tools/pencil-tool.cpp
@@ -83,20 +83,15 @@ const std::string& PencilTool::getPrefsPath() {
const std::string PencilTool::prefsPath = "/tools/freehand/pencil";
-PencilTool::PencilTool() :
- FreehandBase(),
- p(),
- npoints(0),
- state(SP_PENCIL_CONTEXT_IDLE),
- req_tangent(0,0),
- is_drawing(false),
- ps(),
- sketch_interpolation(Geom::Piecewise<Geom::D2<Geom::SBasis> >())// since PencilTool is not properly constructed...
+PencilTool::PencilTool()
+ : FreehandBase(cursor_pencil_xpm, 4, 4)
+ , p()
+ , npoints(0)
+ , state(SP_PENCIL_CONTEXT_IDLE)
+ , req_tangent(0, 0)
+ , is_drawing(false)
+ , sketch_n(0)
{
- this->cursor_shape = cursor_pencil_xpm;
- this->hot_x = 4;
- this->hot_y = 4;
- this->sketch_n = 0;
}
void PencilTool::setup() {