]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Avoid duplicating mode changing commands
[lyx.git] / 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;