diff options
| author | Jabiertxof <jtx@jtx> | 2017-01-24 07:18:21 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2017-01-24 07:18:21 +0000 |
| commit | 2630f312c74dd106a6f911045dbaed401bd12bbc (patch) | |
| tree | 57a730b481d3355db54319c8bb777cc7431a1a98 /src | |
| parent | Fixes some compiling bug (diff) | |
| download | inkscape-2630f312c74dd106a6f911045dbaed401bd12bbc.tar.gz inkscape-2630f312c74dd106a6f911045dbaed401bd12bbc.zip | |
Bug fixes
(bzr r15295.1.65)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-mirror_symmetry.cpp | 54 | ||||
| -rw-r--r-- | src/live_effects/lpe-mirror_symmetry.h | 2 |
2 files changed, 0 insertions, 56 deletions
diff --git a/src/live_effects/lpe-mirror_symmetry.cpp b/src/live_effects/lpe-mirror_symmetry.cpp index 0defeb900..f35f3096f 100644 --- a/src/live_effects/lpe-mirror_symmetry.cpp +++ b/src/live_effects/lpe-mirror_symmetry.cpp @@ -345,60 +345,6 @@ LPEMirrorSymmetry::doOnRemove (SPLPEItem const* /*lpeitem*/) processObjects(LPE_ERASE); } -void -LPEMirrorSymmetry::processObjects(LpeAction lpe_action) -{ - SPDocument * document = SP_ACTIVE_DOCUMENT; - for (std::vector<const char *>::iterator el_it = items.begin(); - el_it != items.end(); ++el_it) { - const char * id = *el_it; - if (!id || strlen(id) == 0) { - return; - } - SPObject *elemref = NULL; - if (elemref = document->getObjectById(id)) { - Inkscape::XML::Node * elemnode = elemref->getRepr(); - std::vector<SPItem*> item_list; - item_list.push_back(SP_ITEM(elemref)); - std::vector<Inkscape::XML::Node*> item_to_select; - std::vector<SPItem*> item_selected; - SPCSSAttr *css; - Glib::ustring css_str; - switch (lpe_action){ - case LPE_TO_OBJECTS: - if (elemnode->attribute("inkscape:path-effect")) { - sp_item_list_to_curves(item_list, item_selected, item_to_select); - } - elemnode->setAttribute("sodipodi:insensitive", NULL); - break; - - case LPE_ERASE: - elemref->deleteObject(); - break; - - case LPE_VISIBILITY: - css = sp_repr_css_attr_new(); - sp_repr_css_attr_add_from_string(css, elemref->getRepr()->attribute("style")); - if (!this->isVisible()/* && std::strcmp(elemref->getId(),sp_lpe_item->getId()) != 0*/) { - css->setAttribute("display", "none"); - } else { - css->setAttribute("display", NULL); - } - sp_repr_css_write_string(css,css_str); - elemnode->setAttribute("style", css_str.c_str()); - break; - - default: - break; - } - } - } - if (lpe_action == LPE_ERASE || lpe_action == LPE_TO_OBJECTS) { - items.clear(); - } -} - - void LPEMirrorSymmetry::transform_multiply(Geom::Affine const& postmul, bool set) { diff --git a/src/live_effects/lpe-mirror_symmetry.h b/src/live_effects/lpe-mirror_symmetry.h index 5a6db5062..592a11894 100644 --- a/src/live_effects/lpe-mirror_symmetry.h +++ b/src/live_effects/lpe-mirror_symmetry.h @@ -47,7 +47,6 @@ public: virtual void doOnRemove (SPLPEItem const* /*lpeitem*/); virtual void doOnVisibilityToggled(SPLPEItem const* /*lpeitem*/); virtual Gtk::Widget * newWidget(); - void processObjects(LpeAction lpe_action); void toMirror(Geom::Affine transform); // void cloneAttrbutes(Inkscape::XML::Node * origin, Inkscape::XML::Node * dest, const char * first_attribute, ...); void cloneD(SPObject *origin, SPObject *dest, bool live, bool root); @@ -67,7 +66,6 @@ private: PointParam center_point; TextParam id_origin; Geom::Point previous_center; - std::vector<const char *> items; SPObject * container; LPEMirrorSymmetry(const LPEMirrorSymmetry&); LPEMirrorSymmetry& operator=(const LPEMirrorSymmetry&); |
