]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalSupport.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / ExternalSupport.cpp
index 0ce66a42e7a176346173f7bc8c67c42badd8d887..0d2615883bd745cf42fe2d99a4a66d58586040f8 100644 (file)
@@ -50,7 +50,7 @@ Template const * getTemplatePtr(InsetExternalParams const & params)
 
 void editExternal(InsetExternalParams const & params, Buffer const & buffer)
 {
-       formats.edit(buffer, params.filename,
+       formats.edit(buffer, params.filename.availableFile(),
                     formats.getFormatFromFile(params.filename));
 }
 
@@ -254,7 +254,7 @@ void updateExternal(InsetExternalParams const & params,
 
                if (from_checksum != temp_checksum) {
                        Mover const & mover = getMover(from_format);
-                       if (!mover.copy(params.filename, temp_file)) {
+                       if (!mover.copy(params.filename.availableFile(), temp_file)) {
                                LYXERR(Debug::EXTERNAL, "external::updateExternal. "
                                        << "Unable to copy " << params.filename << " to " << temp_file);
                                return; // FAILURE
@@ -310,7 +310,7 @@ void updateExternal(InsetExternalParams const & params,
        ErrorList el;
        bool const success =
                theConverters().convert(&buffer, temp_file, abs_to_file,
-                                  params.filename, from_format, to_format, el,
+                                  params.filename.availableFile(), from_format, to_format, el,
                                   Converters::try_default | Converters::try_cache);
 
        if (!success) {