commit 33eb33d0e7cd91e5e722aba306850177c9ec4998
Author: Richard Kimberly Heck <[email protected]>
Date:   Thu Jul 9 22:25:09 2020 -0400

    Revert "Simplify code a bit. Should be equivalent, unless backs is empty!"
    
    This reverts commit 3c094c739ba38f43edf9698ac37dd9eee62080b1.
---
 src/BufferParams.cpp |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index 4a70ed8..4ed8b4e 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -2653,10 +2653,12 @@ FormatList const & BufferParams::exportableFormats(bool 
only_viewable) const
                  excludes.insert("xetex");
        }
 
-       FormatList result;
-       for (auto const & b : backs) {
-               FormatList r =
-                       theConverters().getReachable(b, only_viewable, false, 
excludes);
+       FormatList result =
+               theConverters().getReachable(backs[0], only_viewable, true, 
excludes);
+       vector<string>::const_iterator it = backs.begin() + 1;
+       for (; it != backs.end(); ++it) {
+               FormatList r = theConverters().getReachable(*it, only_viewable,
+                                                                               
                        false, excludes);
                result.insert(result.end(), r.begin(), r.end());
        }
        sort(result.begin(), result.end(), Format::formatSorter);
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to