X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView_pimpl.C;h=8144d511db9e24e0b42bd82ad1f4d0b78a362095;hb=de3c8e5b80effa940c92980032389c868f377d6b;hp=72e072490a7b617c194211cc43255426f93a5ec7;hpb=7a4a8abd426b3a1e5242e6ebd40d842913086e66;p=lyx.git diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index 72e072490a..8144d511db 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -353,7 +353,7 @@ void BufferView::Pimpl::setBuffer(Buffer * b) owner_->updateLayoutChoice(); owner_->updateWindowTitle(); - if (lyx::graphics::Previews::activated() && buffer_) + if (buffer_ && lyx::graphics::Previews::status() != LyXRC::PREVIEW_OFF) lyx::graphics::Previews::get().generateBufferPreviews(*buffer_); } @@ -885,7 +885,7 @@ bool BufferView::Pimpl::workAreaDispatch(FuncRequest const & cmd0) inset->dispatch(cur, cmd); // Now dispatch to the temporary cursor. If the real cursor should - // be modified, the inset's dispatch has to do so explicitly. + // be modified, the inset's dispatch has to do so explicitly. if (!res.dispatched()) res = cur.dispatch(cmd);