mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
We can now use the cached information instead of tracing the graph.
This commit is contained in:
parent
014bc7805e
commit
7c9e9b4c90
@ -2393,11 +2393,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…
x
Reference in New Issue
Block a user