mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Be a bit more careful here. In weird cases, this can be null.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40600 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
20f61c7eb7
commit
6f3dd321f3
@ -3109,10 +3109,16 @@ bool GuiView::GuiViewPrivate::asyncBufferProcessing(
|
|||||||
gv_->message(msg);
|
gv_->message(msg);
|
||||||
}
|
}
|
||||||
GuiViewPrivate::busyBuffers.insert(used_buffer);
|
GuiViewPrivate::busyBuffers.insert(used_buffer);
|
||||||
|
Buffer * cloned_buffer = used_buffer->cloneFromMaster();
|
||||||
|
if (!cloned_buffer) {
|
||||||
|
Alert::error(_("Export Error"),
|
||||||
|
_("Error cloning the Buffer."));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
QFuture<Buffer::ExportStatus> f = QtConcurrent::run(
|
QFuture<Buffer::ExportStatus> f = QtConcurrent::run(
|
||||||
asyncFunc,
|
asyncFunc,
|
||||||
used_buffer,
|
used_buffer,
|
||||||
used_buffer->cloneFromMaster(),
|
cloned_buffer,
|
||||||
format);
|
format);
|
||||||
setPreviewFuture(f);
|
setPreviewFuture(f);
|
||||||
last_export_format = used_buffer->params().bufferFormat();
|
last_export_format = used_buffer->params().bufferFormat();
|
||||||
|
Loading…
Reference in New Issue
Block a user