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.
This commit is contained in:
Juergen Spitzmueller 2020-10-03 08:54:06 +02:00
parent 2afc68ede2
commit 2330b4ce9c

View File

@ -514,7 +514,7 @@ void InsetRef::addToToc(DocIterator const & cpit, bool output_active,
active_ = output_active; active_ = output_active;
docstring const & label = getParam("reference"); docstring const & label = getParam("reference");
if (buffer().insetLabel(label)) { if (buffer().insetLabel(label)) {
broken_ = !buffer().activeLabel(label); broken_ = !buffer().activeLabel(label) && active_;
setBroken(broken_); setBroken(broken_);
if (broken_ && output_active) { if (broken_ && output_active) {
shared_ptr<Toc> toc2 = backend.toc("brokenrefs"); shared_ptr<Toc> toc2 = backend.toc("brokenrefs");