X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FConverter.cpp;h=ee17f57445e1b61bed6f33ee0e4c308d003e65dd;hb=0430132aa049f2a97280bcbcff69f71d42ed7d98;hp=f10d563fc2d52ae496c4d2a0a777530d439ebdac;hpb=306b136cc005a1aeb9a6861ee0ac6fe2a2dd53e3;p=lyx.git diff --git a/src/Converter.cpp b/src/Converter.cpp index f10d563fc2..ee17f57445 100644 --- a/src/Converter.cpp +++ b/src/Converter.cpp @@ -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); } }