ascent_ = xcell(0).ascent();
descent_ = xcell(0).descent();
- dh_ = 5; //mathed_char_height(LM_TC_VAR, size(), 'I', ascent_, descent_);
+ dh_ = 6; //mathed_char_height(LM_TC_VAR, size(), 'I', ascent_, descent_);
if (upper()) {
dy_ = -ascent_ - dh_;
if (wide())
mathed_draw_deco(pain, x, y + dy_, width_, dh_, name_);
else {
- int w = 2 + mathed_char_width(LM_TC_VAR, size_, 'x');
+ int w = mathed_char_width(LM_TC_VAR, size_, 'x');
mathed_draw_deco(pain, x + (width_ - w) / 2, y + dy_, w, dh_, name_);
}
}
void MathXArray::metrics(MathMetricsInfo const & mi) const
{
size_ = mi;
- mathed_char_dim(LM_TC_VAR, mi, 'I', ascent_, descent_, width_);
- if (data_.empty())
+ if (data_.empty()) {
+ mathed_char_dim(LM_TC_VAR, mi, 'I', ascent_, descent_, width_);
return;
+ }
- math_font_max_dim(LM_TC_TEXTRM, mi, ascent_, descent_);
- width_ = 0;
+ ascent_ = 0;
+ descent_ = 0;
+ width_ = 0;
- //lyxerr << "MathXArray::metrics(): '" << data_ << "'\n";
-
for (const_iterator it = begin(); it != end(); ++it) {
MathInset const * p = it->nucleus();
MathScriptInset const * q = (it + 1 == end()) ? 0 : asScript(it);