]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetRef.cpp
Never mark references in inactive insets broken
[features.git] / src / insets / InsetRef.cpp
index 92f09630b3e26a008838c2ae1ce65c793040cb8a..d30f2efc68231df60a84f7ca2b5167c17341c5b9 100644 (file)
@@ -514,7 +514,7 @@ void InsetRef::addToToc(DocIterator const & cpit, bool output_active,
        active_ = output_active;
        docstring const & label = getParam("reference");
        if (buffer().insetLabel(label)) {
-               broken_ = !buffer().activeLabel(label);
+               broken_ = !buffer().activeLabel(label) && active_;
                setBroken(broken_);
                if (broken_ && output_active) {
                        shared_ptr<Toc> toc2 = backend.toc("brokenrefs");