mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
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:
parent
279ea68a2a
commit
ab1aef2187
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user