I _think_ we had a reference to a temp object going out of scope. No more.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3986 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-04-12 14:08:00 +00:00
parent 4b4a18e85a
commit db1f26a781
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
* GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
a reference to a temp object that's going out of scope...
2002-04-09 Herbert Voss <voss@lyx.org>
* GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using

View File

@ -415,7 +415,7 @@ namespace {
string const findTargetFormat(string const & from)
{
typedef GImage::FormatList FormatList;
FormatList const & formats = GImage::loadableFormats();
FormatList const formats = GImage::loadableFormats();
// There must be a format to load from.
lyx::Assert(!formats.empty());