mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
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
This commit is contained in:
parent
2f76056e6c
commit
13f08c6215
@ -240,14 +240,6 @@ void updateExternal(InsetExternalParams const & params,
|
|||||||
if (to_format.empty())
|
if (to_format.empty())
|
||||||
return; // NOT_NEEDED
|
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
|
// The master buffer. This is useful when there are multiple levels
|
||||||
// of include files
|
// of include files
|
||||||
Buffer const * m_buffer = buffer.getMasterBuffer();
|
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?
|
// FIXME (Abdel 12/08/06): Is there a need to show these errors?
|
||||||
ErrorList el;
|
ErrorList el;
|
||||||
/* bool const success = */
|
bool const success =
|
||||||
theConverters().convert(&buffer, temp_file, abs_to_file,
|
theConverters().convert(&buffer, temp_file, abs_to_file,
|
||||||
params.filename, from_format, to_format, el,
|
params.filename, from_format, to_format, el,
|
||||||
Converters::try_default | Converters::try_cache);
|
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
|
// return success
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user