mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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>
|
2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||||
|
|
||||||
* Makefile.am (INCLUDES): loose SIGC_INCLUDES
|
* Makefile.am (INCLUDES): loose SIGC_INCLUDES
|
||||||
|
@ -325,18 +325,22 @@ string const findTargetFormat(string const & from)
|
|||||||
lyx::Assert(!formats.empty());
|
lyx::Assert(!formats.empty());
|
||||||
|
|
||||||
// First ascertain if we can load directly with no conversion
|
// 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();
|
FormatList::const_iterator end = formats.end();
|
||||||
for (; it1 != end; ++it1) {
|
for (; it != end; ++it) {
|
||||||
if (from == *it1)
|
if (from == *it)
|
||||||
return *it1;
|
return *it;
|
||||||
}
|
}
|
||||||
|
|
||||||
// So, we have to convert to a loadable format. Can we?
|
// So, we have to convert to a loadable format. Can we?
|
||||||
FormatList::const_iterator it2 = formats.begin();
|
it = formats.begin();
|
||||||
for (; it2 != end; ++it2) {
|
for (; it != end; ++it) {
|
||||||
if (grfx::Converter::isReachable(from, *it2))
|
if (grfx::Converter::isReachable(from, *it))
|
||||||
return *it2;
|
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
|
// Failed! so we have to try to convert it to XPM format
|
||||||
|
Loading…
Reference in New Issue
Block a user