mathcursor->getPos(x, y);
x -= par()->xo();
y -= par()->yo();
+ y -= 3;
}
mathcursor->getPos(x, y);
//x -= par()->xo();
y -= par()->yo();
+ y -= 3;
int asc;
- int desc;
- math_font_max_dim(LM_TC_TEXTRM, LM_ST_TEXT, asc, desc);
- bv->showLockedInsetCursor(x, y, asc, desc);
+ int des;
+ math_font_max_dim(LM_TC_TEXTRM, LM_ST_TEXT, asc, des);
+ bv->showLockedInsetCursor(x, y, asc, des);
}
toggleCursorVisible();
x -= par()->xo();
y -= par()->yo();
int asc;
- int desc;
- math_font_max_dim(LM_TC_TEXTRM, LM_ST_TEXT, asc, desc);
- bv->fitLockedInsetCursor(x, y, asc, desc);
+ int des;
+ math_font_max_dim(LM_TC_TEXTRM, LM_ST_TEXT, asc, des);
+ bv->fitLockedInsetCursor(x, y, asc, des);
}
toggleInsetCursor(bv);
}
if (l)
width_ += 30 + l;
}
+
+ // make it at least as high as the current font
+ int asc = 0;
+ int des = 0;
+ math_font_max_dim(LM_TC_TEXTRM, LM_ST_TEXT, asc, des);
+ ascent_ = std::max(ascent_, asc);
+ descent_ = std::max(descent_, des);
}
if (data_.empty())
return;
-
+
+ math_font_max_dim(LM_TC_TEXTRM, LM_ST_TEXT, ascent_, descent_);
width_ = 0;
//lyxerr << "MathXArray::metrics(): '" << data_ << "'\n";