Fix bug #7777. We need a loader when exporting no matter what.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40067 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-10-29 20:14:36 +00:00
parent 5666b903ba
commit b66e3c6e0f

View File

@ -953,7 +953,7 @@ void Buffer::setFullyLoaded(bool value)
PreviewLoader * Buffer::loader() const
{
if (lyxrc.preview == LyXRC::PREVIEW_OFF)
if (!isExporting() && lyxrc.preview == LyXRC::PREVIEW_OFF)
return 0;
if (!d->preview_loader_)
d->preview_loader_ = new PreviewLoader(*this);