Cloned buffers routinely have their parents reset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33676 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-08 14:56:49 +00:00
parent 13746b6d82
commit 5a4e241df4

View File

@ -278,7 +278,8 @@ public:
}
///
void setParent(Buffer const * pb) {
if (parent_buffer && pb && parent_buffer != pb)
if (!cloned_buffer_
&& parent_buffer && pb && parent_buffer != pb)
LYXERR0("Warning: a buffer should not have two parents!");
parent_buffer = pb;
}