diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-11-05 13:00:28 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-11-05 13:00:28 +0000 |
| commit | 361c74fe71cc69df8feba546204c93099e6b22b8 (patch) | |
| tree | 2a0fc43cdd8d85ffdea3c89f9ef734c143948ae5 /src/ui/dialog/livepatheffect-editor.cpp | |
| parent | Fix bug:1639098 (diff) | |
| download | inkscape-361c74fe71cc69df8feba546204c93099e6b22b8.tar.gz inkscape-361c74fe71cc69df8feba546204c93099e6b22b8.zip | |
Fix change between multiples LPE in the same item
(bzr r15212)
Diffstat (limited to 'src/ui/dialog/livepatheffect-editor.cpp')
| -rw-r--r-- | src/ui/dialog/livepatheffect-editor.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index 4d60d610e..9bd4c093e 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -546,18 +546,8 @@ void LivePathEffectEditor::on_effect_selection_changed() LivePathEffect::LPEObjectReference * lperef = (*it)[columns.lperef]; if (lperef && current_lpeitem && current_lperef != lperef) { - //The last condition ignore Gtk::TreeModel may occasionally be changed emitted when nothing has happened - Glib::RefPtr<Gtk::TreeModel> model = effectlist_view.get_model(); - Gtk::TreeNodeChildren childs = model->children(); - Gtk::TreeNodeChildren::iterator row; - bool removed = true; - for( row = childs.begin() ; row!=childs.end(); ++row) - { - if ( (*row)[columns.lperef] == current_lperef ) { - removed = false; - } - } - if (!removed && lperef->lpeobject->get_lpe()) { + //The last condition ignore Gtk::TreeModel may occasionally be changed emitted when nothing has happened + if (lperef->getObject()) { lpe_list_locked = true; // prevent reload of the list which would lose selection current_lpeitem->setCurrentPathEffect(lperef); current_lperef = lperef; |
