diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-04 01:04:51 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-04 01:04:51 +0000 |
| commit | 4007abe02509fc1e312a007fb26f31c5a595df26 (patch) | |
| tree | 1baa70a370188042e52065ccc18723d1404d5de0 /src/knotholder.cpp | |
| parent | Update to trunk (diff) | |
| download | inkscape-4007abe02509fc1e312a007fb26f31c5a595df26.tar.gz inkscape-4007abe02509fc1e312a007fb26f31c5a595df26.zip | |
Begin first stage of resolving issue with duplicate knots
(bzr r13090.1.46)
Diffstat (limited to 'src/knotholder.cpp')
| -rw-r--r-- | src/knotholder.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp index cf87423d4..94a041385 100644 --- a/src/knotholder.cpp +++ b/src/knotholder.cpp @@ -203,14 +203,16 @@ KnotHolder::knot_ungrabbed_handler(SPKnot */*knot*/, guint) /* do cleanup tasks (e.g., for LPE items write the parameter values * that were changed by dragging the handle to SVG) */ - if (SP_IS_LPE_ITEM(object)) { + if (dynamic_cast<SPLPEItem*> (object)) { // This writes all parameters to SVG. Is this sufficiently efficient or should we only // write the ones that were changed? - - Inkscape::LivePathEffect::Effect *lpe = SP_LPE_ITEM(object)->getCurrentLPE(); - if (lpe) { - LivePathEffectObject *lpeobj = lpe->getLPEObj(); - lpeobj->updateRepr(); + SPLPEItem * lpeitem = SP_LPE_ITEM(this->item); + if (lpeitem) { + Inkscape::LivePathEffect::Effect *lpe = lpeitem->getCurrentLPE(); + if (lpe) { + LivePathEffectObject *lpeobj = lpe->getLPEObj(); + lpeobj->updateRepr(); + } } } |
