]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalSupport.C
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / ExternalSupport.C
index c12ebaaa15afb923e73f961ddeb7dadb22d3eb41..b60fee1f02106403d50503fbe43a43bf0508b377 100644 (file)
@@ -56,7 +56,7 @@ void editExternal(InsetExternalParams const & params, Buffer const & buffer)
 {
        string const file_with_path = params.filename.absFilename();
        formats.edit(buffer, file_with_path,
-                    support::getExtFromContents(file_with_path));
+                    support::getFormatFromContents(file_with_path));
 }
 
 
@@ -174,7 +174,7 @@ void updateExternal(InsetExternalParams const & params,
                        return; // NOT_NEEDED
 
                // Try and ascertain the file format from its contents.
-               from_format = support::getExtFromContents(abs_from_file);
+               from_format = support::getFormatFromContents(abs_from_file);
                if (from_format.empty())
                        return; // FAILURE