diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-09-16 14:00:54 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-09-16 14:00:54 +0000 |
| commit | f38f101c22e8afeceacc49bcd09b43bac47347e7 (patch) | |
| tree | 8b2ed6f7ce62871d454a6669a9e944be16bfce0f /src/selection-chemistry.cpp | |
| parent | Add default extension for native win32 file save dialog. (diff) | |
| download | inkscape-f38f101c22e8afeceacc49bcd09b43bac47347e7.tar.gz inkscape-f38f101c22e8afeceacc49bcd09b43bac47347e7.zip | |
Fix a bug on uninicialitated variable, that perform diferent results in debug and in release mode. Thanks Michael for help me finfing this bug. Also sused to remove some unnneded code in path chemistry and to better naming the variable uninicilitated
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 9764563f1..9e0298f6a 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -2849,18 +2849,6 @@ void ObjectSet::cloneOriginal() SPFlowtext *flowtext = dynamic_cast<SPFlowtext *>(item); if (flowtext) { original = flowtext->get_frame(NULL); // first frame only - } else { - SPLPEItem *lpeItem = dynamic_cast<SPLPEItem *>(item); - if (lpeItem) { - // check if the applied LPE is Clone original, if so, go to the refered path - Inkscape::LivePathEffect::Effect* lpe = lpeItem->getPathEffectOfType(Inkscape::LivePathEffect::CLONE_ORIGINAL); - if (lpe) { - Inkscape::LivePathEffect::Parameter *lpeparam = lpe->getParameter("linkedpath"); - if (Inkscape::LivePathEffect::OriginalPathParam *pathparam = dynamic_cast<Inkscape::LivePathEffect::OriginalPathParam *>(lpeparam)) { - original = pathparam->getObject(); - } - } - } } } } |
