]> git.lyx.org Git - features.git/commit
Do not consider deleted labels in ambiguity check
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 9 Jan 2019 08:06:53 +0000 (09:06 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 9 Jan 2019 08:06:53 +0000 (09:06 +0100)
commitbfd86a947a03cc3e06930ceccd235b4f8ebf6962
treefbbab7dc15cb89a54e4bdb1712a3d4f7a9dc5aa8
parent5f3c0d5acacee76b1e04b219704f5a2017bbc7d8
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.

Cherry-picked from:

    [3ae6bff538/lyxgit]
    [a550a613e8/lyxgit]
    [c457ea90e/lyxgit]
    [5cfd25697/lyxgit]
    [5afacb144/lyxgit]
    [54366c38e/lyxgit]

Fixes: #6563
src/Buffer.cpp
src/Buffer.h
src/BufferView.cpp
src/Text.cpp
src/insets/InsetLabel.cpp
src/insets/InsetRef.cpp
status.23x