]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.C
Fix bug 2485 and crash on middle mouse paste on math
[lyx.git] / src / paragraph_funcs.C
index bcbd5a01c0796bda88c62b1cd2d4290a98a74240..5f67d40469a94e6a207dc4588ee97baf34d46e3c 100644 (file)
@@ -168,11 +168,11 @@ void breakParagraph(BufferParams const & bparams,
                return;
        }
 
-        if (!isempty) {
-                par.params().clear();
-                par.layout(bparams.getLyXTextClass().defaultLayout());
-        }
-        
+       if (!isempty) {
+               par.params().clear();
+               par.layout(bparams.getLyXTextClass().defaultLayout());
+       }
+
        // layout stays the same with latex-environments
        if (flag) {
                par.layout(tmp->layout());