]> git.lyx.org Git - lyx.git/commit
Fix bug noticed by Pavel. Apparently, some changes Abdel made to preview loading...
authorRichard Heck <rgheck@lyx.org>
Wed, 22 Jul 2015 15:04:35 +0000 (11:04 -0400)
committerRichard Heck <rgheck@lyx.org>
Wed, 22 Jul 2015 15:04:35 +0000 (11:04 -0400)
commit17a033c15a305cc6e2e22acdee891ee44e3b4556
treec6377d5785d0b7314293da1912ce489dce0a823f
parent2ddad383ea7aa45b2fc546efde6197a6a2362f3a
Fix bug noticed by Pavel. Apparently, some changes Abdel made to preview loading for 2.1.x broke LyXHTML preview of math as images.

We have been here before. The png files are generated, but then by the time we preview the document, they are gone. This is because (a) when the PreviewLoader for a Buffer is deleted, it removes all its previews and (b) we export in a clone, so that Buffer gets deleted before the preview is actually shown. So we need to check whether we are a preview for a clone before we delete anything.
src/graphics/PreviewImage.cpp