From 75ce50098937e10d1bb81afb2c34a6a8df968c46 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 15 Sep 2007 16:50:14 +0000 Subject: [PATCH] Fix bug 4178: http://bugzilla.lyx.org/show_bug.cgi?id=4178 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20291 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/graphics/GraphicsLoader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/graphics/GraphicsLoader.cpp b/src/graphics/GraphicsLoader.cpp index 1863725a7f..e175ba5c75 100644 --- a/src/graphics/GraphicsLoader.cpp +++ b/src/graphics/GraphicsLoader.cpp @@ -17,6 +17,8 @@ #include "GraphicsParams.h" #include "LoaderQueue.h" +#include "callback.h" + #include @@ -206,7 +208,8 @@ Loader::Impl::Impl() Loader::Impl::~Impl() { - resetFile(FileName()); + if (!quitting) + resetFile(FileName()); }