]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
Circumvent odd stmary font metrics (part of #9990).
[lyx.git] / src / Converter.cpp
index f10d563fc2d52ae496c4d2a0a777530d439ebdac..ee17f57445e1b61bed6f33ee0e4c308d003e65dd 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"
@@ -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);
        }
 }