]> git.lyx.org Git - features.git/commit
Do not consider deleted labels in ambiguity check
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 29 Dec 2018 09:08:02 +0000 (10:08 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:54 +0000 (14:39 +0200)
commit64bc7a0cc7afacab3ff73d445cba228a538a2aa6
tree9027b9aa7d6da287b0f1f514d0e09cfe448a8401
parent143f2f5dccc81f0604b084039a987deac62c0894
Do not consider deleted labels in ambiguity check

This adds a new (boolean) parameter "active" to the label cache, where
we track whether a label is deleted in ct mode (the same could be done,
if wanted, for labels in notes and inactive branches).

Deleted (inactive) labels are neither considered in the uniqueness check
nor added to the outliner. This also means that undeleted references to
deleted labels are now (correctly) marked as BROKEN.

Fixes: #6563
src/Buffer.cpp
src/Buffer.h
src/Text.cpp
src/insets/InsetLabel.cpp
src/insets/InsetRef.cpp