Metrics fix. Empty math inset doesn't have zero dimension.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20899 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-10-11 10:33:36 +00:00
parent 04ee2d87fc
commit 9f60651fcb

View File

@ -437,11 +437,6 @@ void MathData::setXY(BufferView & bv, int x, int y) const
Dimension const & MathData::dimension(BufferView const & bv) const
{
if (empty()) {
static Dimension dummy;
return dummy;
}
return bv.coordCache().getArrays().dim(this);
}