From 7c9e9b4c90fade3be8623a9fc1a509e06872a9cd 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. --- src/BufferParams.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index bae97f6800..d56c15bb16 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -2393,11 +2393,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; } -- 2.39.2