summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/livepatheffect-editor.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2016-12-03 19:05:32 +0000
committerJabiertxof <jtx@jtx>2016-12-03 19:05:32 +0000
commit69ba226147751a529c9561925b2737fa3071ecd2 (patch)
tree85e2ae317c8f67ca0451e41dc5d022b6f2554aac /src/ui/dialog/livepatheffect-editor.cpp
parentAdd triangle knot. (diff)
downloadinkscape-69ba226147751a529c9561925b2737fa3071ecd2.tar.gz
inkscape-69ba226147751a529c9561925b2737fa3071ecd2.zip
Improvements and fixes for buds pointed by suv on measure line LPE
(bzr r15294)
Diffstat (limited to 'src/ui/dialog/livepatheffect-editor.cpp')
-rw-r--r--src/ui/dialog/livepatheffect-editor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp
index 9bd4c093e..8910005aa 100644
--- a/src/ui/dialog/livepatheffect-editor.cpp
+++ b/src/ui/dialog/livepatheffect-editor.cpp
@@ -539,9 +539,11 @@ void LivePathEffectEditor::onDown()
void LivePathEffectEditor::on_effect_selection_changed()
{
Glib::RefPtr<Gtk::TreeSelection> sel = effectlist_view.get_selection();
- if (sel->count_selected_rows () == 0)
+ if (sel->count_selected_rows () == 0) {
+ button_remove.set_sensitive(false);
return;
-
+ }
+ button_remove.set_sensitive(true);
Gtk::TreeModel::iterator it = sel->get_selected();
LivePathEffect::LPEObjectReference * lperef = (*it)[columns.lperef];