diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2013-09-26 20:25:56 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2013-09-26 20:25:56 +0000 |
| commit | 90c7ce56fa03e18efa7296d12c6ca48f8e322e60 (patch) | |
| tree | 00941fe9b988c90c21e618d20fa55c0346d52da3 /src/lpe-tool-context.cpp | |
| parent | Fix for Bug #1229605 (inkscape crashes when canceled import pdf). (diff) | |
| download | inkscape-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.cpp | 4 |
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("")) { |
