]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsConverter.cpp
de.po: fix doubled accelerator keys
[lyx.git] / src / graphics / GraphicsConverter.cpp
index 7c8991bebcf2f597218f9bf080a317bfbbb9ce5f..6242ed91cb8e4b14e436cffbe4665ff5afc0a559 100644 (file)
@@ -15,6 +15,7 @@
 #include "Converter.h"
 #include "Format.h"
 
+#include "support/lassert.h"
 #include "support/convert.h"
 #include "support/debug.h"
 #include "support/FileName.h"
@@ -257,7 +258,7 @@ static void build_script(FileName const & from_file,
                  string const & to_format,
                  ostream & script)
 {
-       BOOST_ASSERT(from_format != to_format);
+       LASSERT(from_format != to_format, /**/);
        LYXERR(Debug::GRAPHICS, "build_script ... ");
        typedef Converters::EdgePath EdgePath;
 
@@ -294,7 +295,6 @@ static void build_script(FileName const & from_file,
        static int counter = 0;
        string const tmp = "gconvert" + convert<string>(counter++);
        FileName const to_base = FileName::tempName(tmp);
-       to_base.removeFile();
 
        // Create a copy of the file in case the original name contains
        // problematic characters like ' or ". We can work around that problem