Fix typo found by coverity

We were not testing for the right end(), although it is not sure that
an actual bug could be triggered because of that.
This commit is contained in:
Jean-Marc Lasgouttes 2017-03-07 12:02:54 +01:00
parent 25d64bf43a
commit dc126bad04

View File

@ -433,7 +433,7 @@ string Formats::getFormatFromFile(FileName const & filename) const
Formats::const_iterator cit =
find_if(formatlist.begin(), formatlist.end(),
FormatMimeEqual(mime));
if (cit != formats.end()) {
if (cit != formatlist.end()) {
LYXERR(Debug::GRAPHICS, "\tgot format from MIME type: "
<< mime << " -> " << cit->name());
// See special eps/ps handling below