From: Vincent van Ravesteijn Date: Fri, 15 Apr 2011 10:54:52 +0000 (+0000) Subject: Fix bug #7444. We are only interested in whether the dimension has been stored in... X-Git-Tag: 2.0.0~109 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b29ef9e1a56cd0d67e2524eabd296d6bc1894f79;p=features.git Fix bug #7444. We are only interested in whether the dimension has been stored in the cache. Therefore we have to use hasDim, otherwise we get a negative response just because the x-y is not set. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38403 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index bc01712343..3d5b8fec62 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -261,7 +261,7 @@ void MathMacro::metrics(MetricsInfo & mi, Dimension & dim) const // otherwise do a manual metrics call CoordCache & coords = mi.base.bv->coordCache(); for (idx_type i = 0; i < nargs(); ++i) { - if (!coords.getArrays().has(&cell(i))) { + if (!coords.getArrays().hasDim(&cell(i))) { Dimension tdim; cell(i).metrics(mi, tdim); }