From db1f26a781894638ab7e11537d64a716333a4776 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 12 Apr 2002 14:08:00 +0000 Subject: [PATCH] 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 --- src/graphics/ChangeLog | 5 +++++ src/graphics/GraphicsCacheItem.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/graphics/ChangeLog b/src/graphics/ChangeLog index 22fec5f3c8..69a18cb8e4 100644 --- a/src/graphics/ChangeLog +++ b/src/graphics/ChangeLog @@ -1,3 +1,8 @@ +2002-04-08 Angus Leeming + + * 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 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using diff --git a/src/graphics/GraphicsCacheItem.C b/src/graphics/GraphicsCacheItem.C index 54fbfdf4a3..f209b3a95b 100644 --- a/src/graphics/GraphicsCacheItem.C +++ b/src/graphics/GraphicsCacheItem.C @@ -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()); -- 2.39.2