Graphics debug message: unable to convert from ABC to XYZ.

That should help diagnosis...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5444 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-10-18 14:35:42 +00:00
parent 279ea68a2a
commit ab1aef2187
2 changed files with 16 additions and 8 deletions

View 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

View 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