summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2019-03-03 01:46:12 +0000
committerMartin Owens <doctormo@gmail.com>2019-03-03 01:46:12 +0000
commita81187537a00bfd368fdde234d925b8eba2dcf41 (patch)
tree5ece8e6fc11f495e37a38c2cbe6d17231df8f134 /src
parentrefactor PanelDialog<Behavior::FloatingBehavior> (diff)
parentFix unmatched svg_length_lookup[] array and SVGLength::Unit (diff)
downloadinkscape-a81187537a00bfd368fdde234d925b8eba2dcf41.tar.gz
inkscape-a81187537a00bfd368fdde234d925b8eba2dcf41.zip
Merge branch 'tim_rawlinson/inkscape-patch-4'
Diffstat (limited to 'src')
-rw-r--r--src/util/units.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/util/units.cpp b/src/util/units.cpp
index 0a1fdbf31..d24ec3c25 100644
--- a/src/util/units.cpp
+++ b/src/util/units.cpp
@@ -45,8 +45,6 @@ enum UnitCode {
UNIT_CODE_MM = MAKE_UNIT_CODE('m','m'),
UNIT_CODE_CM = MAKE_UNIT_CODE('c','m'),
UNIT_CODE_IN = MAKE_UNIT_CODE('i','n'),
- UNIT_CODE_FT = MAKE_UNIT_CODE('f','t'),
- UNIT_CODE_MT = MAKE_UNIT_CODE('m',' '),
UNIT_CODE_EM = MAKE_UNIT_CODE('e','m'),
UNIT_CODE_EX = MAKE_UNIT_CODE('e','x'),
UNIT_CODE_PERCENT = MAKE_UNIT_CODE('%',0)
@@ -64,7 +62,7 @@ inline unsigned make_unit_code(char const *str) {
}
-
+// This must match SVGLength::Unit
unsigned const svg_length_lookup[] = {
0,
UNIT_CODE_PX,
@@ -73,8 +71,6 @@ unsigned const svg_length_lookup[] = {
UNIT_CODE_MM,
UNIT_CODE_CM,
UNIT_CODE_IN,
- UNIT_CODE_FT,
- UNIT_CODE_MT,
UNIT_CODE_EM,
UNIT_CODE_EX,
UNIT_CODE_PERCENT