]> git.lyx.org Git - features.git/commitdiff
Do not issue the warning introduced in r31809 if we are setting the parent for the...
authorVincent van Ravesteijn <vfr@lyx.org>
Fri, 30 Oct 2009 15:33:54 +0000 (15:33 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Fri, 30 Oct 2009 15:33:54 +0000 (15:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31810 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 85ec3d30af1e114b138c103835ac771ff5e446ed..f9c62110619061e0d23875c697b33faf21b4f342 100644 (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;
        }