summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/parameter/unit.cpp')
-rw-r--r--src/live_effects/parameter/unit.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/live_effects/parameter/unit.cpp b/src/live_effects/parameter/unit.cpp
index b78b75dbf..684f29555 100644
--- a/src/live_effects/parameter/unit.cpp
+++ b/src/live_effects/parameter/unit.cpp
@@ -75,8 +75,18 @@ UnitParam::get_abbreviation() const
Gtk::Widget *
UnitParam::param_newWidget()
{
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ Glib::ustring effectkey = (Glib::ustring)Inkscape::LivePathEffect::LPETypeConverter.get_key(param_effect->effectType());
+ Glib::ustring pref_path = (Glib::ustring)"/live_effects/" +
+ effectkey +
+ (Glib::ustring)"/" +
+ (Glib::ustring)param_key;
+ Glib::ustring label = param_label;
+ if(prefs->getEntry(pref_path).isValid()){
+ label = (Glib::ustring)"* " + param_label;
+ }
Inkscape::UI::Widget::RegisteredUnitMenu* unit_menu = Gtk::manage(
- new Inkscape::UI::Widget::RegisteredUnitMenu(param_label,
+ new Inkscape::UI::Widget::RegisteredUnitMenu(label,
param_key,
*param_wr,
param_effect->getRepr(),