+2006-02-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * GraphicsCacheItem.C (findTargetFormat): fix previous fix
+
2006-01-11 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* GraphicsCacheItem.C (convertToDisplayFormat): handle unknown
typedef lyx::graphics::Image::FormatList FormatList;
FormatList const formats = lyx::graphics::Image::loadableFormats();
+ // There must be a format to load from.
+ BOOST_ASSERT(!formats.empty());
+
// Use the standard converter if we don't know the format to load
// from.
- if (!formats.empty())
+ if (from.empty())
return string("ppm");
// First ascertain if we can load directly with no conversion