mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
We can now use the cached information instead of tracing the graph.
(cherry picked from commit 7c9e9b4c90
)
This commit is contained in:
parent
e9b14eed60
commit
348c95d1bf
@ -2403,11 +2403,13 @@ string BufferParams::bufferFormat() const
|
||||
|
||||
bool BufferParams::isExportable(string const & format) const
|
||||
{
|
||||
vector<string> backs = backends();
|
||||
for (vector<string>::const_iterator it = backs.begin();
|
||||
it != backs.end(); ++it)
|
||||
if (theConverters().isReachable(*it, format))
|
||||
FormatList const & formats = exportableFormats(false);
|
||||
FormatList::const_iterator fit = formats.begin();
|
||||
FormatList::const_iterator end = formats.end();
|
||||
for (; fit != end ; ++fit) {
|
||||
if ((*fit)->name() == format)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user