]> 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>
Thu, 25 May 2017 03:40:05 +0000 (23:40 -0400)
(cherry picked from commit 7c9e9b4c90fade3be8623a9fc1a509e06872a9cd)

src/BufferParams.cpp

index e409dff8f0b844f2c750160762fac111330ae35f..8af927ade3a062269b5638b671e545e43b1a47fb 100644 (file)
@@ -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;
 }