mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
0379518340
commit
25e5dfe330
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user