]> git.lyx.org Git - features.git/commitdiff
* src/mathed/InsetMathSymbol.C (metrics): remove broken mac workaround
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Nov 2006 14:47:56 +0000 (14:47 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Nov 2006 14:47:56 +0000 (14:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15824 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathSymbol.C

index 02ee2d0ae7701c974bdf9ff884d8337cdae1d12b..23aeac0e17cbbe9f6fe98ba4e7344b18b5bda29d 100644 (file)
@@ -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<int>(0.5 * em + 0.5);