]> git.lyx.org Git - lyx.git/commitdiff
Don't forget "outfile = real_outfile" as the final step in a conversion where the...
authorAngus Leeming <leeming@lyx.org>
Thu, 9 Jun 2005 15:19:07 +0000 (15:19 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 9 Jun 2005 15:19:07 +0000 (15:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10034 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/converter.C

index a742e8de4bf57559eec747fb3113f6a327222c2a..ca289321bf83f382e4f444951303926968f93671 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-09  Angus Leeming  <leeming@lyx.org>
+
+       * 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  <leeming@lyx.org>
 
        * lyxsocket.C: remove stub code as it isn't needed by
index 79feb70ffeb02e61af370d81acdfb40f55b49592..c8f47c4785d2251c19516a78daf4cc1e12267b70 100644 (file)
@@ -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()) {