diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-04-21 22:18:49 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-04-23 21:37:56 +0000 |
| commit | ad1290795e1334bb4fe73c7bbc3aa7aefdc0aacf (patch) | |
| tree | 130e3ba2d114229c6840000ee03fb8d3616fbf8b /src/attributes.h | |
| parent | Remove some documents updates (diff) | |
| download | inkscape-ad1290795e1334bb4fe73c7bbc3aa7aefdc0aacf.tar.gz inkscape-ad1290795e1334bb4fe73c7bbc3aa7aefdc0aacf.zip | |
Fix promote d
Diffstat (limited to '')
| -rw-r--r-- | src/attributes.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/attributes.h b/src/attributes.h index a2c1c30f5..cecf2673b 100644 --- a/src/attributes.h +++ b/src/attributes.h @@ -20,9 +20,9 @@ unsigned char const *sp_attribute_name(unsigned int id); /** * True iff k is a property in SVG, i.e. something that can be written either in a style attribute - * or as its own XML attribute. + * or as its own XML attribute. This must be kept in sync with SPAttributeEnum. */ -#define SP_ATTRIBUTE_IS_CSS(k) (((k) >= SP_PROP_INKSCAPE_FONT_SPEC) && ((k) <= SP_PROP_TEXT_RENDERING)) +#define SP_ATTRIBUTE_IS_CSS(k) (((k) >= SP_ATTR_D) && ((k) <= SP_PROP_PATH_EFFECT)) /* * Do not change order of attributes and properties. Attribute and @@ -146,7 +146,7 @@ enum SPAttributeEnum { SP_ATTR_X, SP_ATTR_Y, /* SPPath */ - SP_ATTR_D, + // SP_ATTR_D, Promoted to property in SVG 2 SP_ATTR_INKSCAPE_ORIGINAL_D, SP_ATTR_CONNECTOR_TYPE, SP_ATTR_CONNECTOR_CURVATURE, @@ -428,7 +428,12 @@ enum SPAttributeEnum { SP_ATTR_TEXT_EXCLUDE, SP_ATTR_LAYOUT_OPTIONS, - /* CSS & SVG Properties KEEP ORDER */ + /* CSS & SVG Properties KEEP ORDER! + * If first or last property changed, macro at top must be changed! + */ + + /* SVG 2 Attributes promoted to properties */ + SP_ATTR_D, /* Paint */ SP_PROP_COLOR, |
