do not require inset dimensions when the inset is not in the right range (bug 4443)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27878 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2008-12-15 10:51:00 +00:00
parent 8382d7a9dc
commit 5c2539f9ee

View 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());
}