summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/styledialog.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-06-13 00:12:50 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-06-13 00:12:50 +0000
commit4d5d4003f8c51a7cf6dccf9201112afe0c2b7a89 (patch)
tree2f275b2b6a52e4d83f52b7ff02b473f08a634258 /src/ui/dialog/styledialog.cpp
parentGix a bug dragging/droping selectors (diff)
downloadinkscape-4d5d4003f8c51a7cf6dccf9201112afe0c2b7a89.tar.gz
inkscape-4d5d4003f8c51a7cf6dccf9201112afe0c2b7a89.zip
Warn if CSS value in stylesheet is wrong
Diffstat (limited to 'src/ui/dialog/styledialog.cpp')
-rw-r--r--src/ui/dialog/styledialog.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/dialog/styledialog.cpp b/src/ui/dialog/styledialog.cpp
index cf86eebca..8ebaf1a7b 100644
--- a/src/ui/dialog/styledialog.cpp
+++ b/src/ui/dialog/styledialog.cpp
@@ -787,7 +787,11 @@ bool StyleDialog::_on_foreach_iter(const Gtk::TreeModel::iterator &iter)
Gtk::TreeModel::Row row = *(iter);
Glib::ustring owner = row[_mColumns._colOwner];
if (owner.empty()) {
- Glib::ustring tooltiptext = Glib::ustring(_("Used in ") + _owner_style[row[_mColumns._colName]]);
+ Glib::ustring value = _owner_style[row[_mColumns._colName]];
+ Glib::ustring tooltiptext = Glib::ustring(_("Invalid value set"));
+ if (!value.empty()) {
+ tooltiptext = Glib::ustring(_("Used in ") + _owner_style[row[_mColumns._colName]]);
+ }
row[_mColumns._colOwner] = tooltiptext;
}
return false;