fix [#28213] Imperial unit for 0.001 inches inconsistently displayed as mils and...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 11 Aug 2011 08:24:56 +0000 (08:24 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 11 Aug 2011 08:24:56 +0000 (08:24 +0000)
source/blender/blenkernel/intern/unit.c

index b89e576..a9792bc 100644 (file)
@@ -136,7 +136,7 @@ static struct bUnitDef buImperialLenDef[] = {
        {"yard", "yards",               "yd", NULL, "Yards",    UN_SC_YD, 0.0,  B_UNIT_DEF_NONE},
        {"foot", "feet",                "'", "ft", "Feet",              UN_SC_FT, 0.0,  B_UNIT_DEF_NONE}, /* base unit */
        {"inch", "inches",              "\"", "in", "Inches",   UN_SC_IN, 0.0,  B_UNIT_DEF_NONE},
-       {"thou", "thous",               "mil", NULL, "Thous",   UN_SC_MIL, 0.0, B_UNIT_DEF_NONE},
+       {"thou", "thou",                "thou", "mil", "Thou",  UN_SC_MIL, 0.0, B_UNIT_DEF_NONE}, /* plural for thou has no 's' */
        {NULL, NULL, NULL, NULL, NULL, 0.0, 0.0}
 };
 static struct bUnitCollection buImperialLenCollecton = {buImperialLenDef, 4, 0, sizeof(buImperialLenDef)/sizeof(bUnitDef)};