From 348c95d1bfaa02f600787e386e33b628af7f4b59 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 20 Oct 2016 22:52:54 -0400 Subject: [PATCH] We can now use the cached information instead of tracing the graph. (cherry picked from commit 7c9e9b4c90fade3be8623a9fc1a509e06872a9cd) --- src/BufferParams.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index e409dff8f0..8af927ade3 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -2403,11 +2403,13 @@ string BufferParams::bufferFormat() const bool BufferParams::isExportable(string const & format) const { - vector backs = backends(); - for (vector::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; }