]> 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)
committerPavel Sanda <sanda@lyx.org>
Thu, 7 Jun 2018 21:13:33 +0000 (23:13 +0200)
commit44466f305f047312afb336466d5a3c3050c75584
treef3c7d7a088b4601651b068a46b3cf6252139bbce
parent874ad18178ac387c407534fd18e33c116c753430
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