On 31/01/2010 21:51, v...@lyx.org wrote:
Author: vfr
Date: Sun Jan 31 21:51:15 2010
New Revision: 33301
URL: http://www.lyx.org/trac/changeset/33301

Log:
Revert r33295. This seems to be a not so great idea. The assert already fires 
when copying something.

You can tag an internal buffer as fully loaded when created. I don't think this will have any consequence.

Abdel.


Modified:
    lyx-devel/trunk/src/Buffer.cpp

Modified: lyx-devel/trunk/src/Buffer.cpp
==============================================================================
--- lyx-devel/trunk/src/Buffer.cpp      Sun Jan 31 19:24:59 2010        (r33300)
+++ lyx-devel/trunk/src/Buffer.cpp      Sun Jan 31 21:51:15 2010        (r33301)
@@ -1118,13 +1118,6 @@

  bool Buffer::write(ostream&  ofs) const
  {
-       // Do not try to save the buffer if it is for some
-       // reason not fully loaded.
-       if (!d->file_fully_loaded) {
-               LYXERR0("WARNING: file was not fully loaded when trying to 
save.");
-               LASSERT(d->file_fully_loaded, return false);
-       }
-
  #ifdef HAVE_LOCALE
        // Use the standard "C" locale for file output.
        ofs.imbue(locale::classic());



Reply via email to