From acdc6334471e51c0703e817f87bc2c41204dc6d2 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Sat, 15 Dec 2001 15:02:36 +0000 Subject: [PATCH] Consider lyxrc.zoom for computing the width of MathKernInset. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3216 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 4 ++++ src/mathed/math_kerninset.C | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 0764b9a63f..24ef06a03f 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,7 @@ +2001-12-15 Dekel Tsur + + * math_kerninset.C (metrics): Consider lyxrc.zoom + 2001-12-14 Dekel Tsur * math_support.C: Fix handling of \mathfrak font. diff --git a/src/mathed/math_kerninset.C b/src/mathed/math_kerninset.C index e14cfe786a..5fe1d030a6 100644 --- a/src/mathed/math_kerninset.C +++ b/src/mathed/math_kerninset.C @@ -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(wid_.value()); + width_ = (width_*static_cast(lyxrc.zoom))/150; //cerr << "handling kern of width " << wid_.value() << "\n"; } -- 2.39.5