From b06228b35e10fa3726a294f6c5509d9768dcd588 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 3 Oct 2007 08:46:34 +0000 Subject: [PATCH] Fix empty blue box painting in mathed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20687 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/MathData.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp index 86741882bd..6a0eac88d3 100644 --- a/src/mathed/MathData.cpp +++ b/src/mathed/MathData.cpp @@ -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; -- 2.39.2