X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fxarray.C;h=5fff5bb75ad091cc258cbcb144fcd235b06cc902;hb=781db21b320af1ac2925cd6e1c5387a6c13603e0;hp=58d1b77a8c6059b3773e0180825fcce061bf65f9;hpb=067a4819b8c1976a439f4ca0e1a6e4c15d5de411;p=lyx.git 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) {