In Lyx 1.2.2 CVS, GraphicsConvert.C:113 you do not use
ChangeExtension.
The same problem may arise in GConverter::build_script, few lines later.
The attached files trigger the problem.

Regards,
Marco Morandini

RCS file: /cvs/lyx/lyx-devel/src/graphics/GraphicsConverter.C,v
retrieving revision 1.4.2.1
diff -u -r1.4.2.1 GraphicsConverter.C
--- src/graphics/GraphicsConverter.C    2002/07/01 14:51:03     1.4.2.1
+++ src/graphics/GraphicsConverter.C    2002/08/28 14:42:29
@@ -163,8 +163,10 @@
  {
         typedef Converters::EdgePath EdgePath;

-       string const 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
+       string const to_file =
+               to_file_base + '.' + formats.extension(to_format);

         if (from_format == to_format) {
                 script << move_file(QuoteName(from_file), 
QuoteName(to_file));

Attachment: pippo.tgz
Description: GNU Unix tar archive

Reply via email to