X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FPreviewLoader.cpp;h=c3055dc61ee89a80dba76baaf35d2caf80c2af4d;hb=592219c1f1c5f27d3bb3274906fc932c4983ee3a;hp=7a969763fb804e6ba4d86840c29f2884ad036496;hpb=2973108a62c893981568c7cbc6ac3bd4db3a92f1;p=features.git diff --git a/src/graphics/PreviewLoader.cpp b/src/graphics/PreviewLoader.cpp index 7a969763fb..c3055dc61e 100644 --- a/src/graphics/PreviewLoader.cpp +++ b/src/graphics/PreviewLoader.cpp @@ -450,6 +450,11 @@ PreviewLoader::Impl::preview(string const & latex_snippet) const void PreviewLoader::Impl::refreshPreviews() { font_scaling_factor_ = int(buffer_.fontScalingFactor()); + // Reschedule refresh until the previous process completed. + if (!finished_generating_) { + delay_refresh_->start(1000); + return; + } Cache::const_iterator cit = cache_.begin(); Cache::const_iterator cend = cache_.end(); while (cit != cend)