summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2015-02-20 11:34:13 +0000
committertavmjong-free <tavmjong@free.fr>2015-02-20 11:34:13 +0000
commit8b25050836c01468209d4a83e0bb91933d3a6b52 (patch)
treed08d7fd325b0600c5e5328119c9dadec026f24b5 /src
parentEliminate errors and reduce warnings. (diff)
downloadinkscape-8b25050836c01468209d4a83e0bb91933d3a6b52.tar.gz
inkscape-8b25050836c01468209d4a83e0bb91933d3a6b52.zip
Mitre is not an SVG/CSS unit. Don't test.
(bzr r13928)
Diffstat (limited to 'src')
-rw-r--r--src/svg/svg-length-test.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/svg/svg-length-test.h b/src/svg/svg-length-test.h
index 796943e45..0dac4854a 100644
--- a/src/svg/svg-length-test.h
+++ b/src/svg/svg-length-test.h
@@ -102,7 +102,10 @@ public:
for ( int i = (static_cast<int>(SVGLength::NONE) + 1); i <= static_cast<int>(SVGLength::LAST_UNIT); i++ ) {
SVGLength::Unit target = static_cast<SVGLength::Unit>(i);
// PX is a special case where we don't have a unit string
- if ( (target != SVGLength::PX) && (target != SVGLength::FOOT) ) {
+ // FOOT and MITRE are not CSS/SVG Units
+ if ( (target != SVGLength::PX) &&
+ (target != SVGLength::FOOT) &&
+ (target != SVGLength::MITRE) ) {
gchar const* val = sp_svg_length_get_css_units(target);
TSM_ASSERT_DIFFERS(i, val, "");
}