From: Jean-Marc Lasgouttes Date: Thu, 9 Nov 2006 14:47:56 +0000 (+0000) Subject: * src/mathed/InsetMathSymbol.C (metrics): remove broken mac workaround X-Git-Tag: 1.6.10~11963 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a93279983dba396002ead388a4af38b8c0d2e612;p=features.git * src/mathed/InsetMathSymbol.C (metrics): remove broken mac workaround git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15824 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathSymbol.C b/src/mathed/InsetMathSymbol.C index 02ee2d0ae7..23aeac0e17 100644 --- a/src/mathed/InsetMathSymbol.C +++ b/src/mathed/InsetMathSymbol.C @@ -65,24 +65,12 @@ void InsetMathSymbol::metrics(MetricsInfo & mi, Dimension & dim) const FontSetChanger dummy(mi.base, sym_->inset); mathed_string_dim(mi.base.font, sym_->draw, dim); // correct height for broken cmex and wasy font -#if defined(__APPLE__) && defined(__GNUC__) - if (sym_->inset == "cmex") { - h_ = 4 * dim.des / 5; - dim.asc += 0*h_; - dim.des -= h_; - h_ = dim.asc; - } else if (sym_->inset == "wasy") { - h_ = 4 * dim.des / 5; - dim.asc += h_; - dim.des -= h_; - } -#else if (sym_->inset == "cmex" || sym_->inset == "wasy") { h_ = 4 * dim.des / 5; dim.asc += h_; dim.des -= h_; } -#endif + // seperate things a bit if (isRelOp()) dim.wid += static_cast(0.5 * em + 0.5);