mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
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:
parent
2afc68ede2
commit
2330b4ce9c
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user