]> git.lyx.org Git - features.git/blobdiff - src/graphics/GraphicsConverter.C
fix latex output for graphics file names containing "."; partly fix 381
[features.git] / src / graphics / GraphicsConverter.C
index 841d6d189103cc3c168dad0922c921125eeca2bc..a1f45e1280f7579cdd0adc5a3174ac98a15a72fd 100644 (file)
@@ -150,7 +150,9 @@ Converter::Impl::Impl(Converter & p,
        fs.close();
 
        // The converted image is to be stored in this file
-       to_file_ = ChangeExtension(to_file_base, formats.extension(to_format));
+       // We do not use ChangeExtension here because this is a
+       // basename, which may nevertheless contain a dot
+       to_file_ = to_file_base + '.' + formats.extension(to_format);
 
        // The command needed to run the conversion process
        // We create a dummy command for ease of understanding of the