diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-01-06 12:40:41 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2016-01-06 12:40:41 +0000 |
| commit | 253da39319875724ef7345f8cc14ac75a31a4f2d (patch) | |
| tree | 986b385779f305fbd7e9f3b30ac9e87d8e1e2fc3 /src/ui/tools/freehand-base.cpp | |
| parent | Fix wrong symm node type in BSpline converted to Bezier (diff) | |
| download | inkscape-253da39319875724ef7345f8cc14ac75a31a4f2d.tar.gz inkscape-253da39319875724ef7345f8cc14ac75a31a4f2d.zip | |
Fix crash when apply Bend From Clipboard to a clone by the pen/pencil toolbar
(bzr r14563)
Diffstat (limited to 'src/ui/tools/freehand-base.cpp')
| -rw-r--r-- | src/ui/tools/freehand-base.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/tools/freehand-base.cpp b/src/ui/tools/freehand-base.cpp index a889a12e6..613857626 100644 --- a/src/ui/tools/freehand-base.cpp +++ b/src/ui/tools/freehand-base.cpp @@ -42,6 +42,7 @@ #include "selection-chemistry.h" #include "snap.h" #include "sp-path.h" +#include "sp-use.h" #include "sp-namedview.h" #include "live_effects/lpe-powerstroke.h" #include "style.h" @@ -271,7 +272,11 @@ static void spdc_apply_powerstroke_shape(const std::vector<Geom::Point> & points static void spdc_apply_bend_shape(gchar const *svgd, FreehandBase *dc, SPItem *item) { using namespace Inkscape::LivePathEffect; - if(!SP_LPE_ITEM(item)->hasPathEffectOfType(BEND_PATH)){ + SPUse *use = dynamic_cast<SPUse *>(item); + if ( use ) { + return; + } + if(!SP_IS_LPE_ITEM(item) || !SP_LPE_ITEM(item)->hasPathEffectOfType(BEND_PATH)){ Effect::createAndApply(BEND_PATH, dc->desktop->doc(), item); } Effect* lpe = SP_LPE_ITEM(item)->getCurrentLPE(); |
