From 71374b38c26585dc060e923452f2dd873ef00f15 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 21 Jul 2016 10:21:45 +0200 Subject: [PATCH] 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. --- src/TextMetrics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index c7ccbac7fc..e1153df43d 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -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; -- 2.39.2