]> git.lyx.org Git - features.git/commit
Avoid duplicate generation of the same preview
authorEnrico Forestieri <forenr@lyx.org>
Wed, 6 Jun 2018 16:59:37 +0000 (18:59 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 6 Jun 2018 16:59:37 +0000 (18:59 +0200)
commit125ee9fb8ccbd42e50ce9e70c0d1589d1b965603
treeb2236d0356da1f26e240a82e63d74705a110d9d1
parent6fe29e99460b34bc7fa6962f4b78940d78cfef7b
Avoid duplicate generation of the same preview

When an image has to be loaded a second time and the cache
is not used or the image is not in the cache, its preview is
going to be regenerated again. Hence, if the same image
appears more than once on screen, avoid requesting simultaneous
generation of the same preview.
See also this thread:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg205057.html
src/graphics/GraphicsLoader.cpp