]> git.lyx.org Git - lyx.git/commitdiff
Improve debug output
authorGeorg Baum <baum@lyx.org>
Thu, 2 Jun 2016 20:17:19 +0000 (22:17 +0200)
committerGeorg Baum <baum@lyx.org>
Thu, 2 Jun 2016 20:17:19 +0000 (22:17 +0200)
Now we have only one line per format, not two. The output looks the same now
as in GuiApplication.cpp for the qt formats.

src/graphics/GraphicsCache.cpp

index b816926c8dff7901b874fe71b58bce8ef6999f94..5ed905252d71343d9571aea74b975eb2c4d88e3b 100644 (file)
@@ -94,11 +94,8 @@ vector<string> const & Cache::loadableFormats() const
                vector<string>::const_iterator fbegin = fmts.begin();
                vector<string>::const_iterator fend = fmts.end();
                for (vector<string>::const_iterator fit = fbegin; fit != fend; ++fit) {
-                       if (fit != fbegin)
-                               LYXERR(Debug::GRAPHICS, ", ");
-                       LYXERR(Debug::GRAPHICS, *fit);
+                       LYXERR(Debug::GRAPHICS, *fit << ',');
                }
-               LYXERR(Debug::GRAPHICS, '\n');
        }
 
        return fmts;