]> git.lyx.org Git - features.git/commitdiff
Graphics debug message: unable to convert from ABC to XYZ.
authorAngus Leeming <leeming@lyx.org>
Fri, 18 Oct 2002 14:35:42 +0000 (14:35 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 18 Oct 2002 14:35:42 +0000 (14:35 +0000)
That should help diagnosis...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5444 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/ChangeLog
src/graphics/GraphicsCacheItem.C

index 0066b0caa5ab7f959c4132e6f4235aca79abd6fc..da38df4435f9e3083585ece69c1b172c2c12f825 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-18  Angus Leeming  <leeming@lyx.org>
+
+       * GraphicsCacheItem.C (findTargetFormat): add debug message.
+
 2002-09-24  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * Makefile.am (INCLUDES): loose SIGC_INCLUDES
index b599e7c845cea62fc341cbe90645ca2af0bba846..c84ad76d39d77d3eb3a1bf3a7459e41f4c8051a1 100644 (file)
@@ -325,18 +325,22 @@ string const findTargetFormat(string const & from)
        lyx::Assert(!formats.empty());
 
        // First ascertain if we can load directly with no conversion
-       FormatList::const_iterator it1 = formats.begin();
+       FormatList::const_iterator it  = formats.begin();
        FormatList::const_iterator end = formats.end();
-       for (; it1 != end; ++it1) {
-               if (from == *it1)
-                       return *it1;
+       for (; it != end; ++it) {
+               if (from == *it)
+                       return *it;
        }
 
        // So, we have to convert to a loadable format. Can we?
-       FormatList::const_iterator it2 = formats.begin();
-       for (; it2 != end; ++it2) {
-               if (grfx::Converter::isReachable(from, *it2))
-                       return *it2;
+       it = formats.begin();
+       for (; it != end; ++it) {
+               if (grfx::Converter::isReachable(from, *it))
+                       return *it;
+               else
+                       lyxerr[Debug::GRAPHICS]
+                               << "Unable to convert from " << from
+                               << " to " << *it << std::endl;
        }
 
        // Failed! so we have to try to convert it to XPM format