[LyX/master] Use cached label for statistics and plaintext (#13322)
Juergen Spitzmueller
spitz at lyx.org
Sun Jun 7 05:57:46 UTC 2026
commit 7e69673c3b764bb28d2e24e46a25fce2f4253783
Author: Juergen Spitzmueller <spitz at lyx.org>
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);
}
More information about the lyx-cvs
mailing list