]> git.lyx.org Git - features.git/commitdiff
Never mark references in inactive insets broken
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 3 Oct 2020 06:54:06 +0000 (08:54 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 3 Oct 2020 06:54:06 +0000 (08:54 +0200)
This is the sledgehammer (and the only) way to omit broken refs if the
target is in an (or the same) inactive inset as well.

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");