diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-09-21 21:12:27 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-09-21 21:12:27 +0000 |
| commit | a474159bf7130e9b46a8da1efaf32e9eac4c55b7 (patch) | |
| tree | 5a7966a4b2f6c8a30fa6772a383d0d826775e275 /src/ui/dialog/livepatheffect-editor.cpp | |
| parent | Update expected renderings. (diff) | |
| download | inkscape-a474159bf7130e9b46a8da1efaf32e9eac4c55b7.tar.gz inkscape-a474159bf7130e9b46a8da1efaf32e9eac4c55b7.zip | |
Fix for bug #1715433 Clone original LPE can no longer be used to fill a powerstroke path
Diffstat (limited to 'src/ui/dialog/livepatheffect-editor.cpp')
| -rw-r--r-- | src/ui/dialog/livepatheffect-editor.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index 02f76dbbb..28a42929b 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -206,9 +206,11 @@ LivePathEffectEditor::showParams(LivePathEffect::Effect& effect) if (defaultswidget) { Gtk::Expander * expander = NULL; std::vector<Gtk::Widget *> childs = dynamic_cast<Gtk::Box *> (effectwidget)->get_children(); - std::vector<Gtk::Widget *> childs_default = dynamic_cast<Gtk::Box *> (childs[childs.size()-1])->get_children(); - if ((expander = dynamic_cast<Gtk::Expander *>(childs_default[childs_default.size()-1]))){ - expanderopen = expander->get_expanded(); + if (childs.size()) { + std::vector<Gtk::Widget *> childs_default = dynamic_cast<Gtk::Box *> (childs[childs.size()-1])->get_children(); + if ((expander = dynamic_cast<Gtk::Expander *>(childs_default[childs_default.size()-1]))){ + expanderopen = expander->get_expanded(); + } } } effectcontrol_vbox.remove(*effectwidget); |
