commit dc126bad0441eb8721043e597657d5c18bdf6c90
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Tue Mar 7 12:02:54 2017 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Format.cpp b/src/Format.cpp
index b605c4e..1b53d73 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