]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCacheItem.cpp
de.po: fix doubled accelerator keys
[lyx.git] / src / graphics / GraphicsCacheItem.cpp
index e0cf41209554db4323e067f65994a02e6bfb541c..ff83f6f7d23ccb96b3a4fd9dc19c3ce789cf035d 100644 (file)
@@ -319,7 +319,7 @@ static string const findTargetFormat(string const & from)
        // Use the standard converter if we don't know the format to load
        // from.
        if (from.empty())
-               return string("png");
+               return string("ppm");
 
        // First ascertain if we can load directly with no conversion
        FormatList::const_iterator it  = formats.begin();
@@ -339,9 +339,9 @@ static string const findTargetFormat(string const & from)
                                << " to " << *it);
        }
 
-       // Failed! so we have to try to convert it to PNG format
+       // Failed! so we have to try to convert it to PPM format
        // with the standard converter
-       return string("png");
+       return string("ppm");
 }
 
 
@@ -422,10 +422,6 @@ void CacheItem::Impl::convertToDisplayFormat()
        FileName const to_file_base = FileName::tempName("CacheItem");
        remove_loaded_file_ = true;
 
-       // Remove the temp file, we only want the name...
-       // FIXME: This is unsafe!
-       to_file_base.removeFile();
-
        // Connect a signal to this->imageConverted and pass this signal to
        // the graphics converter so that we can load the modified file
        // on completion of the conversion process.