mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Do not start from a non-reveant parent in Buffer cloning.
This commit is contained in:
parent
d0cd06e191
commit
e077255aea
@ -562,13 +562,13 @@ Buffer::~Buffer()
|
||||
}
|
||||
|
||||
|
||||
Buffer * Buffer::cloneFromMaster() const
|
||||
Buffer * Buffer::cloneWithChildren() const
|
||||
{
|
||||
BufferMap bufmap;
|
||||
cloned_buffers.push_back(new CloneList);
|
||||
CloneList * clones = cloned_buffers.back();
|
||||
|
||||
masterBuffer()->cloneWithChildren(bufmap, clones);
|
||||
cloneWithChildren(bufmap, clones);
|
||||
|
||||
// make sure we got cloned
|
||||
BufferMap::const_iterator bit = bufmap.find(this);
|
||||
|
@ -159,9 +159,9 @@ public:
|
||||
/// Destructor
|
||||
~Buffer();
|
||||
|
||||
/// Clones the entire structure of which this Buffer is part, starting
|
||||
/// with the master and cloning all the children, too.
|
||||
Buffer * cloneFromMaster() const;
|
||||
/// Clones the entire structure of which this Buffer is part,
|
||||
/// cloning all the children, too.
|
||||
Buffer * cloneWithChildren() const;
|
||||
/// Just clones this single Buffer. For autosave.
|
||||
Buffer * cloneBufferOnly() const;
|
||||
///
|
||||
|
@ -3656,10 +3656,10 @@ bool GuiView::GuiViewPrivate::asyncBufferProcessing(
|
||||
#if EXPORT_in_THREAD
|
||||
if (allow_async) {
|
||||
GuiViewPrivate::busyBuffers.insert(used_buffer);
|
||||
Buffer * cloned_buffer = used_buffer->cloneFromMaster();
|
||||
Buffer * cloned_buffer = used_buffer->cloneWithChildren();
|
||||
if (!cloned_buffer) {
|
||||
Alert::error(_("Export Error"),
|
||||
_("Error cloning the Buffer."));
|
||||
_("Error cloning the Buffer."));
|
||||
return false;
|
||||
}
|
||||
QFuture<Buffer::ExportStatus> f = QtConcurrent::run(
|
||||
|
Loading…
Reference in New Issue
Block a user