From 781db21b320af1ac2925cd6e1c5387a6c13603e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 3 Sep 2001 08:55:56 +0000 Subject: [PATCH] Make the height of a formula at least the height of an 'I' git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2660 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/xarray.C | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mathed/xarray.C b/src/mathed/xarray.C index 58d1b77a8c..5fff5bb75a 100644 --- a/src/mathed/xarray.C +++ b/src/mathed/xarray.C @@ -22,15 +22,13 @@ MathXArray::MathXArray() void MathXArray::metrics(MathStyles st) const { - if (data_.empty()) { - mathed_char_dim(LM_TC_VAR, st, 'I', ascent_, descent_, width_); + style_ = st; + mathed_char_dim(LM_TC_VAR, st, 'I', ascent_, descent_, width_); + + if (data_.empty()) return; - } - ascent_ = 0; - descent_ = 0; width_ = 0; - style_ = st; //lyxerr << "MathXArray::metrics(): '" << data_ << "'\n"; for (int pos = 0; pos < data_.size(); ++pos) { -- 2.39.2