Fix empty blue box painting in mathed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20687 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-10-03 08:46:34 +00:00
parent 4fc79439ad
commit b06228b35e

View File

@ -241,8 +241,11 @@ void MathData::metrics(MetricsInfo & mi, Dimension & dim) const
sshift_ = xascent / 4;
kerning_ = 0;
if (empty())
if (empty()) {
// Cache the dimension.
mi.base.bv->coordCache().arrays().add(this, dim);
return;
}
dim.asc = 0;
dim.wid = 0;