]> git.lyx.org Git - features.git/commitdiff
We can now use the cached information instead of tracing the graph.
authorRichard Heck <rgheck@lyx.org>
Fri, 21 Oct 2016 02:52:54 +0000 (22:52 -0400)
committerRichard Heck <rgheck@lyx.org>
Fri, 21 Oct 2016 03:07:13 +0000 (23:07 -0400)
src/BufferParams.cpp

index bae97f68004e37e6df11c7bba5f11db817a60d1f..d56c15bb166f0310af69d6fece21a624a73e8bc3 100644 (file)
@@ -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;
 }