From: Jean-Marc Lasgouttes Date: Tue, 7 Mar 2017 11:02:54 +0000 (+0100) Subject: Fix typo found by coverity X-Git-Tag: 2.3.0alpha1~268 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=dc126bad0441eb8721043e597657d5c18bdf6c90;p=features.git 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. --- 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