]> git.lyx.org Git - features.git/commitdiff
Recompute Paragraph::beginOfBody() earlier
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 21 Jul 2016 08:21:45 +0000 (10:21 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 21 Jul 2016 08:37:41 +0000 (10:37 +0200)
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.

(cherry picked from commit 71374b38c26585dc060e923452f2dd873ef00f15)

src/TextMetrics.cpp
status.22x

index ed819812c41fdab8f48e845801be7e8adf78a61c..a26b88dc726b0d6a32f9cb5f90fdec712e4783b5 100644 (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;
        // maximum pixel width of a row
index 7800d1cb9cc673300ee756f2414f107a97ceb893..d5eecbff26a3bf5ea9bdad831c88313db3211d14 100644 (file)
@@ -49,7 +49,11 @@ What's new
 
 - Fix display of multi-author citations when the GUI language is not English.
 
-- Fix bug where change tracking marks are lost under math insets (bug 10265).
+- Fix bug where change tracking marks are lost under math insets (bug
+  10265).
+
+- Fix display glitch when switching to Description layout with an inset
+  at the beginning of the paragraph (bug 10163)
 
 * INTERNALS