]> git.lyx.org Git - lyx.git/blobdiff - src/output_plaintext.cpp
listerrors.lyx : Update a link.
[lyx.git] / src / output_plaintext.cpp
index 3ff3771049b5b49a31f18b2f5cd08abd7568b9fa..d58c44a7964f42fdc5e75e5cb75451c1e0aa609c 100644 (file)
@@ -34,9 +34,14 @@ namespace lyx {
 void writePlaintextFile(Buffer const & buf, FileName const & fname,
        OutputParams const & runparams)
 {
-       odocfstream ofs;
+       ofdocstream ofs;
        if (!openFileWrite(ofs, fname))
                return;
+
+       // make sure we are ready to export
+       buf.updateBuffer();
+       buf.updateMacroInstances(OutputUpdate);
+
        writePlaintextFile(buf, ofs, runparams);
 }