mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
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:
parent
8382d7a9dc
commit
5c2539f9ee
@ -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 ii = par.insetList().begin();
|
||||||
InsetList::const_iterator iend = par.insetList().end();
|
InsetList::const_iterator iend = par.insetList().end();
|
||||||
for ( ; ii != iend; ++ii) {
|
for ( ; ii != iend; ++ii) {
|
||||||
Dimension const & dim = pm.insetDimension(ii->inset);
|
|
||||||
if (ii->pos >= first && ii->pos < end) {
|
if (ii->pos >= first && ii->pos < end) {
|
||||||
|
Dimension const & dim = pm.insetDimension(ii->inset);
|
||||||
maxasc = max(maxasc, dim.ascent());
|
maxasc = max(maxasc, dim.ascent());
|
||||||
maxdesc = max(maxdesc, dim.descent());
|
maxdesc = max(maxdesc, dim.descent());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user