summaryrefslogtreecommitdiffstats
path: root/src/attributes.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-03-07 13:47:42 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-03-07 13:47:42 +0000
commit0326e4287a1f6a4f52d9a3998adf8670e25c85da (patch)
treec46729df7d9b1c42222ebda19f688d2aa691aea6 /src/attributes.cpp
parentRemove unused includes, etc. (diff)
downloadinkscape-0326e4287a1f6a4f52d9a3998adf8670e25c85da.tar.gz
inkscape-0326e4287a1f6a4f52d9a3998adf8670e25c85da.zip
Promote the path 'd' attribute to a property per SVG 2. Try 2.
See e88644b0 for first attempt and for comments.
Diffstat (limited to 'src/attributes.cpp')
-rw-r--r--src/attributes.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/attributes.cpp b/src/attributes.cpp
index 6522563af..7a3916f6d 100644
--- a/src/attributes.cpp
+++ b/src/attributes.cpp
@@ -138,7 +138,6 @@ static SPStyleProp const props[] = {
{SP_ATTR_X, "x"},
{SP_ATTR_Y, "y"},
/* SPPath */
- {SP_ATTR_D, "d"},
{SP_ATTR_INKSCAPE_ORIGINAL_D, "inkscape:original-d"},
/* (Note: XML representation of connectors may change in future.) */
{SP_ATTR_CONNECTOR_TYPE, "inkscape:connector-type"},
@@ -422,6 +421,9 @@ static SPStyleProp const props[] = {
/* CSS & SVG Properites */
+ /* SVG 2 Attributes promoted to properties */
+ {SP_ATTR_D, "d"},
+
/* Paint */
{SP_PROP_COLOR, "color"},
{SP_PROP_OPACITY, "opacity"},
@@ -552,6 +554,7 @@ static SPStyleProp const props[] = {
/* LivePathEffect */
{SP_PROP_PATH_EFFECT, "effect"},
+
};
#define n_attrs (sizeof(props) / sizeof(props[0]))