]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.C
fix arabtex-related problems (bug 1225 and bug 1404)
[lyx.git] / src / BufferView_pimpl.C
index 72e072490a7b617c194211cc43255426f93a5ec7..8144d511db9e24e0b42bd82ad1f4d0b78a362095 100644 (file)
@@ -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);