From: Richard Heck Date: Wed, 22 Jul 2015 16:08:20 +0000 (-0400) Subject: Comment. X-Git-Tag: 2.2.0alpha1~400 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2b8ebe9f0d2e408af004e401596bf79d6ce0e76a;p=features.git Comment. --- diff --git a/src/graphics/PreviewImage.cpp b/src/graphics/PreviewImage.cpp index 661c8af8d1..12b03f0a77 100644 --- a/src/graphics/PreviewImage.cpp +++ b/src/graphics/PreviewImage.cpp @@ -113,6 +113,9 @@ PreviewImage::Impl::Impl(PreviewImage & p, PreviewLoader & l, PreviewImage::Impl::~Impl() { + // If these images are generated for a clone, then that may be + // because we are previewing. We therefore do not want to delete + // them when this Buffer is destroyed. if (!ploader_.buffer().isClone()) iloader_.filename().removeFile(); }