From: Georg Baum Date: Wed, 28 Feb 2007 09:12:32 +0000 (+0000) Subject: Fix bug 3232 X-Git-Tag: 1.6.10~10649 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=13f08c6215f485d81cc6a330eba5012d429d6789;p=features.git Fix bug 3232 * 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 --- diff --git a/src/insets/ExternalSupport.C b/src/insets/ExternalSupport.C index 28ca719992..1f7b1fe7f2 100644 --- a/src/insets/ExternalSupport.C +++ b/src/insets/ExternalSupport.C @@ -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 }