summaryrefslogtreecommitdiffstats
path: root/src/lpe-tool-context.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-09-26 20:25:56 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-09-26 20:25:56 +0000
commit90c7ce56fa03e18efa7296d12c6ca48f8e322e60 (patch)
tree00941fe9b988c90c21e618d20fa55c0346d52da3 /src/lpe-tool-context.cpp
parentFix for Bug #1229605 (inkscape crashes when canceled import pdf). (diff)
downloadinkscape-90c7ce56fa03e18efa7296d12c6ca48f8e322e60.tar.gz
inkscape-90c7ce56fa03e18efa7296d12c6ca48f8e322e60.zip
random code cleanup
(bzr r12596)
Diffstat (limited to 'src/lpe-tool-context.cpp')
-rw-r--r--src/lpe-tool-context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lpe-tool-context.cpp b/src/lpe-tool-context.cpp
index 14a536b7d..bcf58aaf3 100644
--- a/src/lpe-tool-context.cpp
+++ b/src/lpe-tool-context.cpp
@@ -410,7 +410,7 @@ lpetool_create_measuring_items(SPLPEToolContext *lc, Inkscape::Selection *select
for (GSList const *i = selection->itemList(); i != NULL; i = i->next) {
if (SP_IS_PATH(i->data)) {
path = SP_PATH(i->data);
- curve = SP_SHAPE(path)->getCurve();
+ curve = path->getCurve();
Geom::Piecewise<Geom::D2<Geom::SBasis> > pwd2 = paths_to_pw(curve->get_pathvector());
canvas_text = (SPCanvasText *) sp_canvastext_new(tmpgrp, lc->desktop, Geom::Point(0,0), "");
if (!show)
@@ -453,7 +453,7 @@ lpetool_update_measuring_items(SPLPEToolContext *lc)
++i )
{
SPPath *path = i->first;
- SPCurve *curve = SP_SHAPE(path)->getCurve();
+ SPCurve *curve = path->getCurve();
Geom::Piecewise<Geom::D2<Geom::SBasis> > pwd2 = Geom::paths_to_pw(curve->get_pathvector());
Inkscape::Util::Unit unit;
if (prefs->getString("/tools/lpetool/unit").compare("")) {