]> git.lyx.org Git - features.git/commitdiff
Fix bug 3232
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 28 Feb 2007 09:12:32 +0000 (09:12 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 28 Feb 2007 09:12:32 +0000 (09:12 +0000)
* src/insets/ExternalSupport.C
(updateExternal): Don't forbid conversions using the default converter

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17380 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ExternalSupport.C

index 28ca719992d080d41e95aaa0a665ef8cae8f0289..1f7b1fe7f2e1fcb9f04c8be49fde48c1ab553e82 100644 (file)
@@ -240,14 +240,6 @@ void updateExternal(InsetExternalParams const & params,
        if (to_format.empty())
                return; // NOT_NEEDED
 
-       if (!theConverters().isReachable(from_format, to_format)) {
-               lyxerr[Debug::EXTERNAL]
-                       << "external::updateExternal. "
-                       << "Unable to convert from "
-                       << from_format << " to " << to_format << endl;
-               return; // FAILURE
-       }
-
        // The master buffer. This is useful when there are multiple levels
        // of include files
        Buffer const * m_buffer = buffer.getMasterBuffer();
@@ -319,10 +311,17 @@ void updateExternal(InsetExternalParams const & params,
 
        // FIXME (Abdel 12/08/06): Is there a need to show these errors?
        ErrorList el;
-       /* bool const success = */
+       bool const success =
                theConverters().convert(&buffer, temp_file, abs_to_file,
                                   params.filename, from_format, to_format, el,
                                   Converters::try_default | Converters::try_cache);
+
+       if (!success)
+               lyxerr[Debug::EXTERNAL]
+                       << "external::updateExternal. "
+                       << "Unable to convert from "
+                       << from_format << " to " << to_format << endl;
+
        // return success
 }