]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MacroTable.cpp
installer: further preparation
[lyx.git] / src / mathed / MacroTable.cpp
index 60fd5683491a79ae60e6854eeda2c98f30466984..fbcd7e69e578549d1130d99cf67e133c76f3ab4d 100644 (file)
@@ -24,6 +24,7 @@
 #include "Text.h"
 
 #include "support/debug.h"
+#include "support/gettext.h"
 #include "support/lassert.h"
 
 #include <sstream>
@@ -109,7 +110,7 @@ vector<docstring> const &  MacroData::defaults() const
 void MacroData::unlock() const
 {
        --lockCount_;
-       LASSERT(lockCount_ >= 0, /**/);
+       LASSERT(lockCount_ >= 0, lockCount_ = 0);
 }
 
 
@@ -135,7 +136,7 @@ void MacroData::updateData() const
        if (queried_)
                return;
 
-       LASSERT(buffer_ != 0, /**/);
+       LBUFERR(buffer_);
        
        // Try to fix position DocIterator. Should not do anything in theory.
        pos_.fixIfBroken();