summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/styledialog.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-08-29 20:34:06 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-08-29 20:34:06 +0000
commit719b90d62fe152b9ff7f08133d0bb7016c4194f2 (patch)
tree725bed1090b75349cd01916a29d74a99046ec085 /src/ui/dialog/styledialog.cpp
parentRemove warnings on de/activate (diff)
downloadinkscape-719b90d62fe152b9ff7f08133d0bb7016c4194f2.tar.gz
inkscape-719b90d62fe152b9ff7f08133d0bb7016c4194f2.zip
add improvements to selectors and merge stylesheet on copy to work between docs
Diffstat (limited to 'src/ui/dialog/styledialog.cpp')
-rw-r--r--src/ui/dialog/styledialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/dialog/styledialog.cpp b/src/ui/dialog/styledialog.cpp
index 38c194b4f..84ea82423 100644
--- a/src/ui/dialog/styledialog.cpp
+++ b/src/ui/dialog/styledialog.cpp
@@ -262,7 +262,12 @@ Glib::ustring StyleDialog::fixCSSSelectors(Glib::ustring selector)
tag = tag.substr(0, i);
}
if (!SPAttributeRelSVG::isSVGElement(tag)) {
- return "";
+ if (tokens.size() == 1) {
+ tag = "." + tag;
+ return tag;
+ } else {
+ return "";
+ }
}
}
}