]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
Do not issue the warning introduced in r31809 if we are setting the parent for the...
[features.git] / 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;
        }