From a874c837d500dfc1502b01be0971163b83971b49 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Thu, 9 Jun 2005 15:19:07 +0000 Subject: [PATCH] Don't forget "outfile = real_outfile" as the final step in a conversion where the input and output file names are the same. Otherwise, future conversion steps won't work... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10034 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 6 ++++++ src/converter.C | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index a742e8de4b..ca289321bf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2005-06-09 Angus Leeming + + * converter.C (convert): Don't forget "outfile = real_outfile" as + the final step in a conversion where the input and output file names + are the same. Otherwise, future conversion steps won't work... + 2005-06-09 Angus Leeming * lyxsocket.C: remove stub code as it isn't needed by diff --git a/src/converter.C b/src/converter.C index 79feb70ffe..c8f47c4785 100644 --- a/src/converter.C +++ b/src/converter.C @@ -412,6 +412,9 @@ bool Converters::convert(Buffer const * buffer, << "renaming file " << outfile << " to " << real_outfile << endl; + // Finally, don't forget to tell any future + // converters to use the renamed file... + outfile = real_outfile; } if (!conv.parselog.empty()) { -- 2.39.2