mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
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:
parent
d5338a5f89
commit
c56fa287b6
@ -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"
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user