From c56fa287b6f93aabba4e3ad77ab50111b3953323 Mon Sep 17 00:00:00 2001 From: Martin Vermeer Date: Mon, 1 Oct 2007 12:43:40 +0000 Subject: [PATCH] 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 --- lib/ui/stdtoolbars.inc | 2 +- src/mathed/MathFactory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ui/stdtoolbars.inc b/lib/ui/stdtoolbars.inc index 1e063263a8..9a0500e9a4 100644 --- a/lib/ui/stdtoolbars.inc +++ b/lib/ui/stdtoolbars.inc @@ -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" diff --git a/src/mathed/MathFactory.cpp b/src/mathed/MathFactory.cpp index 01ad4fbe57..00e90f7785 100644 --- a/src/mathed/MathFactory.cpp +++ b/src/mathed/MathFactory.cpp @@ -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); -- 2.39.2