]> 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)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 29 Dec 2018 09:08:02 +0000 (10:08 +0100)
commit3ae6bff5389d61b8f471fa337d5a016a725cf7d5
tree9027b9aa7d6da287b0f1f514d0e09cfe448a8401
parentac3693c04ffaa8e5bcb69884465c5508981e347e
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