Recompute Paragraph::beginOfBody() earlier

In redoParagraph, this should be done before coping with the insets,
other wise some graphic gliches may occur. This is a better fix for

Fixes bug #10163.
This commit is contained in:
Jean-Marc Lasgouttes 2016-07-21 10:21:45 +02:00
parent b9c7594167
commit 71374b38c2

View File

@ -402,6 +402,7 @@ bool TextMetrics::redoParagraph(pit_type const pit)
}
// redo insets
par.setBeginOfBody();
Font const bufferfont = buffer.params().getFont();
CoordCache::Insets & insetCache = bv_->coordCache().insets();
InsetList::const_iterator ii = par.insetList().begin();
@ -435,7 +436,6 @@ bool TextMetrics::redoParagraph(pit_type const pit)
}
}
par.setBeginOfBody();
pos_type first = 0;
size_t row_index = 0;
bool need_new_row = false;