]> git.lyx.org Git - features.git/commitdiff
Comment.
authorRichard Heck <rgheck@lyx.org>
Wed, 22 Jul 2015 16:08:20 +0000 (12:08 -0400)
committerRichard Heck <rgheck@lyx.org>
Wed, 22 Jul 2015 16:08:20 +0000 (12:08 -0400)
src/graphics/PreviewImage.cpp

index 661c8af8d19f947ac5216a4f2e2a2c252f8999bc..12b03f0a776d54531a85bf0c2ff160d382405b5a 100644 (file)
@@ -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();
 }