Final fix to get unit with optional arg (value) working

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20635 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2007-10-01 12:43:40 +00:00
parent d5338a5f89
commit c56fa287b6
2 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ ToolbarSet
Item "No hor. line \\atop" "math-insert \atop"
Item "Nice (3/4) \\nicefrac" "math-insert \nicefrac"
Item "Unit (km) \\unit" "math-insert \unitone"
Item "Unit (864 m) \\unit" "math-insert \unit"
Item "Unit (864 m) \\unit" "math-insert \unittwo"
Item "Unitfrac (km/h) \\unitfrac" "math-insert \unitfrac"
Item "Unitfrac (20 km/h) \\unitfrac" "math-insert \unitfracthree"
Item "Text frac (amsmath) \\tfrac" "math-insert \tfrac"

View File

@ -377,7 +377,7 @@ MathAtom createInsetMath(docstring const & s)
return MathAtom(new InsetMathFrac(InsetMathFrac::UNITFRAC, 3));
if (s == "unitone")
return MathAtom(new InsetMathFrac(InsetMathFrac::UNIT, 1));
if (s == "unit")
if (s == "unittwo")
return MathAtom(new InsetMathFrac(InsetMathFrac::UNIT));
//if (s == "infer")
// return MathAtom(new MathInferInset);