summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2019-10-28 11:33:56 +0000
committerThomas Holder <thomas@thomas-holder.de>2019-10-28 11:33:56 +0000
commit24dfa5187ce285dd862b20262d37a7d789ef9810 (patch)
tree16d2d566e82c474a951f68d7cad64ff63a52ff4f /src/style.cpp
parentrefactor: TypedSPI (diff)
downloadinkscape-24dfa5187ce285dd862b20262d37a7d789ef9810.tar.gz
inkscape-24dfa5187ce285dd862b20262d37a7d789ef9810.zip
refactor: Eliminate SPIEnum::_name
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/style.cpp b/src/style.cpp
index 85371dae8..5bb0457fc 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -598,7 +598,7 @@ SPStyle::read( SPObject *object, Inkscape::XML::Node *repr ) {
// font-variant are converted to shorthands in CSS 3 but can still be read as a
// non-shorthand for compatibility with older renders, so they should not be in this list.
// We could add a flag to SPIBase to avoid string comparison.
- if (p->name() != "font" && p->name() != "marker") {
+ if (p->id() != SP_PROP_FONT && p->id() != SP_PROP_MARKER) {
p->readAttribute( repr );
}
}