]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/table.cpp
Fix layout bug. Pasting text into a cell tried to set Standard layout, because
[lyx.git] / src / tex2lyx / table.cpp
index 40c82b94a8047b01b56b871cb6f5f20ce1c215c5..0c3c2f238d3a7746533ed486eb7701d56b38bf8b 100644 (file)
 
 #include "tex2lyx.h"
 
+#include "support/lassert.h"
 #include "support/convert.h"
 #include "support/lstrings.h"
 
-#include <boost/assert.hpp>
-
 #include <iostream>
 #include <sstream>
 #include <vector>
@@ -465,7 +464,7 @@ void fix_colalign(vector<ColInfo> & colinfo)
 bool parse_hlines(Parser & p, Token const & t, string & hlines,
                  bool is_long_tabular)
 {
-       BOOST_ASSERT(t.cat() == catEscape);
+       LASSERT(t.cat() == catEscape, return false);
 
        if (t.cs() == "hline")
                hlines += "\\hline";