]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetGraphics.cpp
Fix bug 2235: jpeg capital letters (.JPG) does not work with pdflatex
[features.git] / src / insets / InsetGraphics.cpp
index f7c55eab2f3782a298511f6ab9904d5d77b940af..28ea68f7d110c627257cfff1582e284941224239 100644 (file)
@@ -668,7 +668,7 @@ string InsetGraphics::prepareFile(OutputParams const & runparams) const
        LYXERR(Debug::GRAPHICS, "\tthe orig file is: " << orig_file);
 
        if (from == to) {
-               if (!runparams.nice && getExtension(temp_file.absFilename()) != ext) {
+               if (!runparams.nice && !FileName(temp_file).hasExtension(ext)) {
                        // The LaTeX compiler will not be able to determine
                        // the file format from the extension, so we must
                        // change it.