]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.C
Fixed paragraph breaking mechanism for "keepempty" paragraphs (fix #390).
[lyx.git] / src / paragraph.C
index cbeb52eef19a4759e6bbe99e5089cc82a2122da1..e52de16bcc07183b4c44f1acbe4a073f4fa3223b 100644 (file)
@@ -891,7 +891,8 @@ void Paragraph::breakParagraph(BufferParams const & bparams,
                tmp->setLabelWidthString(params().labelWidthString());
        }
 
-       bool isempty = textclasslist[bparams.textclass][layout()].keepempty;
+       bool isempty = (textclasslist[bparams.textclass][layout()].keepempty &&
+                       !size());
        if (!isempty && (size() > pos || !size() || flag == 2)) {
                tmp->layout(layout());
                tmp->params().align(params().align());