]> git.lyx.org Git - features.git/commitdiff
Consider lyxrc.zoom for computing the width of MathKernInset.
authorDekel Tsur <dekelts@tau.ac.il>
Sat, 15 Dec 2001 15:02:36 +0000 (15:02 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Sat, 15 Dec 2001 15:02:36 +0000 (15:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3216 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_kerninset.C

index 0764b9a63f88e363bfb131d386cf1b4f28100b49..24ef06a03f1ca09040c6d6aedafd770c049729e3 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-15  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * math_kerninset.C (metrics): Consider lyxrc.zoom
+
 2001-12-14  Dekel Tsur  <dekelts@tau.ac.il>
 
        * math_support.C: Fix handling of \mathfrak font.
index e14cfe786a86d2b1fd137f5f1d6e67d86defdfe9..5fe1d030a6de69e67f0b0185177ba539465eef41 100644 (file)
@@ -8,7 +8,7 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 #include "math_support.h"
-
+#include "lyxrc.h"
 
 MathKernInset::MathKernInset()
 {}
@@ -43,6 +43,7 @@ void MathKernInset::metrics(MathMetricsInfo const &) const
 #endif
        // this uses the numerical valu in pixels, even if the unit is cm or ex!
        width_   = static_cast<int>(wid_.value());
+       width_   = (width_*static_cast<int>(lyxrc.zoom))/150;
        //cerr << "handling kern of width " << wid_.value() << "\n";
 }