Do not issue the warning introduced in r31809 if we are setting the parent for the first time, or we are removing the parent.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31810 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-10-30 15:33:54 +00:00
parent 0379518340
commit 25e5dfe330

View File

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