]> git.lyx.org Git - features.git/blobdiff - src/LaTeXFeatures.C
J�rgen S's consistent minipage patch.
[features.git] / src / LaTeXFeatures.C
index cb28134d432034f442f6318caccdf850e197464d..01049c315e9aeeaae244373ef2a39559cf224930 100644 (file)
@@ -339,15 +339,19 @@ string const LaTeXFeatures::getTClassPreamble() const
        // the text class specific preamble 
        LyXTextClass const & tclass = textclasslist.TextClass(params.textclass);
        ostringstream tcpreamble;
-       
+
        tcpreamble << tclass.preamble();
 
        for (layout_type i = 0; i < tclass.numLayouts(); ++i) {
                if (layout[i]) {
-                       tcpreamble  << tclass[i].preamble();
+                       tcpreamble << tclass[i].preamble();
                }
        }
 
+       // DEC's implementation of ostringstream has a bug which can be
+       // overcome with this forcing.
+       tcpreamble.seekp(std::ios::beg);
+
        return tcpreamble.str().c_str();
 }