From 95cc596b7d58bb83af48d957eabf35c55a8258ff Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sat, 29 Jul 2023 14:41:22 -0400 Subject: [PATCH] Fix reference to temporary --- src/Counters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Counters.cpp b/src/Counters.cpp index 6f04105227..114b18020b 100644 --- a/src/Counters.cpp +++ b/src/Counters.cpp @@ -631,7 +631,7 @@ docstring Counters::formattedCounter(docstring const & name, Counter const & ctr = it->second; docstring const value = theCounter(name, lang); - docstring const & format = + docstring const format = translateIfPossible(counterLabel(ctr.refFormat(prex), lang), lang); if (format.empty()) return value;