]> git.lyx.org Git - lyx.git/blobdiff - src/output_plaintext.cpp
cmake: remove 2.8 warning
[lyx.git] / src / output_plaintext.cpp
index 97e3ab11270c5fab649507d74e8ae2a679c32a88..2b6af82a4354a133ddd7fb0bc50794660ec25247 100644 (file)
@@ -37,6 +37,11 @@ void writePlaintextFile(Buffer const & buf, FileName const & fname,
        ofdocstream ofs;
        if (!openFileWrite(ofs, fname))
                return;
+
+       // make sure we are ready to export
+       buf.updateBuffer();
+       buf.updateMacroInstances();
+
        writePlaintextFile(buf, ofs, runparams);
 }