From 5a4e241df45cd3ebfdf28decbbe9b4af2f136adc Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 8 Mar 2010 14:56:49 +0000 Subject: [PATCH] Cloned buffers routinely have their parents reset. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33676 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 4214e31384..8f3355b6b7 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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; }