From 2330b4ce9ca7d17bb86d08357fb279cfd57c5505 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 3 Oct 2020 08:54:06 +0200 Subject: [PATCH] Never mark references in inactive insets broken 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp index 92f09630b3..d30f2efc68 100644 --- a/src/insets/InsetRef.cpp +++ b/src/insets/InsetRef.cpp @@ -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 toc2 = backend.toc("brokenrefs"); -- 2.39.2