Le 29/12/2018 à 10:10, Juergen Spitzmueller a écrit :
commit 3ae6bff5389d61b8f471fa337d5a016a725cf7d5
Author: Juergen Spitzmueller <sp...@lyx.org>
Date: Sat Dec 29 10:08:02 2018 +0100
Do not consider deleted labels in ambiguity check
-void Buffer::setInsetLabel(docstring const & label, InsetLabel const * il)
+void Buffer::setInsetLabel(docstring const & label, InsetLabel const * il,
+ bool const active)
{
- masterBuffer()->d->ref_cache_[label].first = il;
+ static LabelInfo linfo;
+ linfo.label = label;
+ linfo.inset = il;
+ linfo.references = References();
+ linfo.active = active;
+ masterBuffer()->d->ref_cache_.push_back(linfo);
Stylistic remarks:
* Why does linfo need to be static here? Looks like a cut and paste issue.
* Is it necessary to initialize references?
JMarc