]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.cpp
This is the first of a series of commits that will make InsetLayout a real class.
[lyx.git] / src / paragraph_funcs.cpp
index 278478f483a0d06c9bdb19cd643fe86b86eb2c09..4dece7ae03eefd46603579a4b2818baacef13bf4 100644 (file)
@@ -72,14 +72,14 @@ void breakParagraph(BufferParams const & bparams,
 
        Paragraph & par = pars[par_offset];
 
+       // remember to set the inset_owner
+       tmp->setInsetOwner(par.inInset());
        // without doing that we get a crash when typing <Return> at the
        // end of a paragraph
        if (par.useEmptyLayout())
                tmp->layout(bparams.getTextClass().emptyLayout());
        else
                tmp->layout(bparams.getTextClass().defaultLayout());
-       // remember to set the inset_owner
-       tmp->setInsetOwner(par.inInset());
 
        // layout stays the same with latex-environments
        if (keep_layout) {