From 9f60651fcb9b38a2529c99c0c64b3f9ae614077e Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 11 Oct 2007 10:33:36 +0000 Subject: [PATCH] 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 --- src/mathed/MathData.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp index dc7271b9fd..a7013b0529 100644 --- a/src/mathed/MathData.cpp +++ b/src/mathed/MathData.cpp @@ -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); } -- 2.39.2