summaryrefslogtreecommitdiffstats
path: root/src/lpe-tool-context.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-09-26 20:53:21 +0000
committerJabiertxof <jtx@jtx.marker.es>2013-09-26 20:53:21 +0000
commit10388486debb4c9d6482a2c754edebc0ceff3760 (patch)
treeb0939271566fa26cbf3bc100ca3c7fea624f4354 /src/lpe-tool-context.cpp
parentCompiling problem solved thaks to ~suv (diff)
parentcppcheck (diff)
downloadinkscape-10388486debb4c9d6482a2c754edebc0ceff3760.tar.gz
inkscape-10388486debb4c9d6482a2c754edebc0ceff3760.zip
update to trunk
(bzr r11950.1.150)
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("")) {