[LyX/master] Use cached label for statistics and plaintext (#13322)
Juergen Spitzmueller <[email protected]> Sun, 07 Jun 2026 05:57:46 +0000
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 7e69673c3b764bb28d2e24e46a25fce2f4253783 Author: Juergen Spitzmueller <[email protected]> Date: Sun Jun 7 07:57:10 2026 +0200 Use cached label for statistics and plaintext (#13322) --- src/insets/InsetCitation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index 980b37fe64..fc65cce3db 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -601,7 +601,7 @@ int InsetCitation::plaintext(odocstringstream & os, if (cmd == "nocite") return 0; - docstring const label = generateLabel(); + docstring const label = cache.generated_label; os << label; return label.size(); } @@ -788,7 +788,7 @@ void InsetCitation::latex(otexstream & os, OutputParams const & runparams) const void InsetCitation::updateStatistics(Statistics & stats) const { - stats.update(generateLabel(false)); + stats.update(cache.generated_label); } -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs