]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCaption.cpp
Fix bug 4037 and related problems. The patch has been cleaned up a bit
[features.git] / src / insets / InsetCaption.cpp
index aec5d2827ec3b0aeb8ef1a6fcae2388a03252ece..e0a3d5555c25a49d271e6a8fd484771d59fd6493 100644 (file)
@@ -55,12 +55,16 @@ InsetCaption::InsetCaption(InsetCaption const & ic)
        setFrameColor(Color_captionframe);
 }
 
+
 InsetCaption::InsetCaption(BufferParams const & bp)
        : InsetText(bp), textclass_(bp.getTextClass())
 {
        setAutoBreakRows(true);
        setDrawFrame(true);
        setFrameColor(Color_captionframe);
+       //FIXME Do we need to set all paragraphs here? or will there
+       //always only be one?
+       paragraphs().back().layout(bp.getTextClass().emptyLayout());
 }