]> git.lyx.org Git - features.git/commitdiff
do not require inset dimensions when the inset is not in the right range (bug 4443)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 15 Dec 2008 10:51:00 +0000 (10:51 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 15 Dec 2008 10:51:00 +0000 (10:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27878 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.cpp

index 87459718de32baa02af5acfc25b2d6078fc38653..dbf767f821f775cdce8192a9e4521822a6fec53f 100644 (file)
@@ -985,8 +985,8 @@ Dimension TextMetrics::rowHeight(pit_type const pit, pos_type const first,
        InsetList::const_iterator ii = par.insetList().begin();
        InsetList::const_iterator iend = par.insetList().end();
        for ( ; ii != iend; ++ii) {
-               Dimension const & dim = pm.insetDimension(ii->inset);
                if (ii->pos >= first && ii->pos < end) {
+                       Dimension const & dim = pm.insetDimension(ii->inset);
                        maxasc  = max(maxasc,  dim.ascent());
                        maxdesc = max(maxdesc, dim.descent());
                }