From dc126bad0441eb8721043e597657d5c18bdf6c90 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 7 Mar 2017 12:02:54 +0100 Subject: [PATCH] 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. --- src/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Format.cpp b/src/Format.cpp index b605c4ee4a..1b53d73422 100644 --- a/src/Format.cpp +++ b/src/Format.cpp @@ -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