]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
Re-organization of Additional Features manual by John Hudson.
[lyx.git] / src / Converter.cpp
index f10d563fc2d52ae496c4d2a0a777530d439ebdac..6acd05a22b1b8c902138575bb9d1af700c2db187 100644 (file)
@@ -29,6 +29,7 @@
 #include "support/FileNameList.h"
 #include "support/filetools.h"
 #include "support/gettext.h"
+#include "support/lassert.h"
 #include "support/lstrings.h"
 #include "support/os.h"
 #include "support/Package.h"
@@ -629,7 +630,7 @@ bool Converters::scanLog(Buffer const & buffer, string const & /*command*/,
 namespace {
 
 class ShowMessage
-       : public boost::signals::trackable {
+       : public boost::signals2::trackable {
 public:
        ShowMessage(Buffer const & b) : buffer_(b) {}
        void operator()(docstring const & msg) const { buffer_.message(msg); }
@@ -707,6 +708,8 @@ void Converters::buildGraph()
        for (; it != end ; ++it) {
                int const from = formats.getNumber(it->from());
                int const to   = formats.getNumber(it->to());
+               LASSERT(from >= 0, continue);
+               LASSERT(to >= 0, continue);
                G_.addEdge(from, to);
        }
 }