diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-11-13 18:29:13 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-11-13 18:29:13 +0000 |
| commit | b833d034eeaa8bc144f6bdb2edd300056ed67b34 (patch) | |
| tree | 923c4cf933279b795e90c44ad4d0166f19f3028f | |
| parent | Fix bug end node, start calculate size based in number of nodes and lenght (diff) | |
| download | inkscape-b833d034eeaa8bc144f6bdb2edd300056ed67b34.tar.gz inkscape-b833d034eeaa8bc144f6bdb2edd300056ed67b34.zip | |
Fix a compile problem
(bzr r14422.3.7)
| -rw-r--r-- | src/live_effects/lpe-roughen.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/live_effects/lpe-roughen.cpp b/src/live_effects/lpe-roughen.cpp index 6b18cf14e..2be3bae31 100644 --- a/src/live_effects/lpe-roughen.cpp +++ b/src/live_effects/lpe-roughen.cpp @@ -98,56 +98,10 @@ LPERoughen::~LPERoughen() {} void LPERoughen::doOnApply(SPLPEItem const* lpeitem) { - SPLPEItem* item = const_cast<SPLPEItem*>(lpeitem); //calculamos el tamaño mas optimo para el roughen en función del número de nodos y la distancia del trazado } -static void -sp_group_perform_patheffect(SPGroup *group, SPGroup *topgroup, bool write) -{ - std::vector<SPItem*> const item_list = sp_item_group_item_list(group); - - for ( std::vector<SPItem*>::const_iterator iter=item_list.begin();iter!=item_list.end();iter++) { - SPObject *subitem = *iter; - - SPGroup *subGroup = dynamic_cast<SPGroup *>(subitem); - if (subGroup) { - sp_group_perform_patheffect(subGroup, topgroup, write); - } else { - SPShape *subShape = dynamic_cast<SPShape *>(subitem); - if (subShape) { - SPCurve * c = NULL; - - SPPath *subPath = dynamic_cast<SPPath *>(subShape); - if (subPath) { - c = subPath->get_original_curve(); - } else { - c = subShape->getCurve(); - } - - // only run LPEs when the shape has a curve defined - if (c) { - c->transform(i2anc_affine(subitem, topgroup)); - topgroup->performPathEffect(c); - c->transform(i2anc_affine(subitem, topgroup).inverse()); - subShape->setCurve(c, TRUE); - if (write) { - Inkscape::XML::Node *repr = subitem->getRepr(); - gchar *str = sp_svg_write_path(c->get_pathvector()); - repr->setAttribute("d", str); -#ifdef GROUP_VERBOSE - g_message("sp_group_perform_patheffect writes 'd' attribute"); -#endif - g_free(str); - } - - c->unref(); - } - } - } - } -} void LPERoughen::doBeforeEffect(SPLPEItem const *lpeitem) { |
