]> 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:21:45 +0000 (10:21 +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.

src/TextMetrics.cpp

index c7ccbac7fc2b9fea453c40c44f54d4ebb3a26e77..e1153df43d750a9f4b871ad6d1d52e9801978c8b 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;
        bool need_new_row = false;