]> git.lyx.org Git - lyx.git/blobdiff - src/buffer_funcs.cpp
Output end of math environments at the beginning of a new line,
[lyx.git] / src / buffer_funcs.cpp
index e5ce08efb90e43629898bb6683f9dabf7a2b4744..468a2589eefd9e2cc4c3b88ebf77a46fb8f6a9a8 100644 (file)
@@ -94,7 +94,7 @@ Buffer * checkAndLoadLyXFile(FileName const & filename, bool const acceptDirty)
                        // Buffer creation is not possible.
                        return 0;
                }
-               if (b->loadLyXFile(filename) != Buffer::ReadSuccess) {
+               if (b->loadLyXFile() != Buffer::ReadSuccess) {
                        // do not save an emergency file when releasing the buffer
                        b->markClean();
                        theBufferList().release(b);
@@ -268,7 +268,7 @@ Buffer * loadIfNeeded(FileName const & fname)
                        // Buffer creation is not possible.
                        return 0;
 
-               if (buffer->loadLyXFile(fname) != Buffer::ReadSuccess) {
+               if (buffer->loadLyXFile() != Buffer::ReadSuccess) {
                        //close the buffer we just opened
                        theBufferList().release(buffer);
                        return 0;