From cd1f5d793ce71899100b9c6cc700c716feeb87b3 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Fri, 10 Mar 2006 12:44:03 +0000 Subject: [PATCH] fix fix of bug 2192 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13318 a592a061-630c-0410-9148-cb99ea01b6c8 --- configure.ac | 2 +- src/graphics/ChangeLog | 4 ++++ src/graphics/GraphicsCacheItem.C | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 0de27e5b59..978babc572 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process with autoconf to generate configure script -*- sh -*- -AC_INIT(LyX,1.4.0,[lyx-devel@lists.lyx.org],[lyx]) +AC_INIT(LyX,1.4.0svn,[lyx-devel@lists.lyx.org],[lyx]) AC_PREREQ(2.52) AC_CONFIG_SRCDIR(src/main.C) AC_CONFIG_HEADERS([src/config.h]) diff --git a/src/graphics/ChangeLog b/src/graphics/ChangeLog index 00ec15395c..4080237982 100644 --- a/src/graphics/ChangeLog +++ b/src/graphics/ChangeLog @@ -1,3 +1,7 @@ +2006-02-17 Georg Baum + + * GraphicsCacheItem.C (findTargetFormat): fix previous fix + 2006-01-11 Georg Baum * GraphicsCacheItem.C (convertToDisplayFormat): handle unknown diff --git a/src/graphics/GraphicsCacheItem.C b/src/graphics/GraphicsCacheItem.C index 4c11ed6b98..ee9441d125 100644 --- a/src/graphics/GraphicsCacheItem.C +++ b/src/graphics/GraphicsCacheItem.C @@ -335,9 +335,12 @@ string const findTargetFormat(string const & from) 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