]> git.lyx.org Git - lyx.git/blobdiff - src/boost.C
fix reading the author field.
[lyx.git] / src / boost.C
index e4d3cf44ed293fc301943ff19854195cf39ccef4..2a6570d8818b1a68762942651e2da52556f99d16 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "lyx_main.h"
 #include "debug.h"
+#include "support/lyxlib.h"
 
 #include <boost/assert.hpp>
 
@@ -39,7 +40,7 @@ void emergencyCleanup()
 
         didCleanup = true;
 
-        LyX::emergencyCleanup();
+        LyX::cref().emergencyCleanup();
 }
 
 }
@@ -48,10 +49,11 @@ void emergencyCleanup()
 void assertion_failed(char const * expr, char const * function,
                      char const * file, long line)
 {
-       lyxerr << "Assertion triggered in " << function << " by \"" <<
-               expr << " in file " << file << ":" << line << endl;
+       lyxerr << "Assertion triggered in " << function
+              << " by failing check \"" << expr << "\""
+              << " in file " << file << ":" << line << endl;
        emergencyCleanup();
-       assert(false);
+       lyx::support::abort();
 }