commit 02c425546117721c4c5f70f84932cd58063b7aa1
Author: Juergen Spitzmueller <[email protected]>
Date:   Sun Aug 24 18:32:57 2025 +0200

    Amend 8cc932b96d511
---
 src/mathed/InsetMathHull.cpp | 33 ++++++++++++++++++---------------
 1 file changed, 18 insertions(+), 15 deletions(-)

diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index 5431a81be0..70b0df7165 100644
--- a/src/mathed/InsetMathHull.cpp
+++ b/src/mathed/InsetMathHull.cpp
@@ -298,22 +298,25 @@ void InsetMathHull::updateBuffer(ParIterator const & it, 
UpdateType utype, bool
                // we need to start afresh to generate the definitions
                cnts.restoreValue(eqstr);
                for (row_type row = 0; row != nrows(); ++row) {
-                       if (numbered(row) && labels_[row]) {
-                               labels_[row]->setCounterValue(numbers_[row]);
-                               if (have_cnt) {
+                       if (numbered(row)) {
+                               if (!it.paragraph().isDeleted(it.pos()))
                                        cnts.step(eqstr, utype);
-                                       // We use the format definitions as 
specified in the counter definition
-                                       
labels_[row]->setPrettyCounter(cnts.prettyCounter(eqstr, lang));
-                                       labels_[row]->setFormattedCounter(
-                                               // lowercase singular
-                                               cnts.formattedCounter(eqstr, 
eqprf, lang, true, false),
-                                               // lowercase plural
-                                               cnts.formattedCounter(eqstr, 
eqprf, lang, true, true),
-                                               // uppercase singular
-                                               cnts.formattedCounter(eqstr, 
eqprf, lang, false, false),
-                                               // uppercase plural
-                                               cnts.formattedCounter(eqstr, 
eqprf, lang, false, true)
-                                       );
+                               if (labels_[row]) {
+                                       
labels_[row]->setCounterValue(numbers_[row]);
+                                       if (have_cnt) {
+                                               // We use the format 
definitions as specified in the counter definition
+                                               
labels_[row]->setPrettyCounter(cnts.prettyCounter(eqstr, lang));
+                                               
labels_[row]->setFormattedCounter(
+                                                       // lowercase singular
+                                                       
cnts.formattedCounter(eqstr, eqprf, lang, true, false),
+                                                       // lowercase plural
+                                                       
cnts.formattedCounter(eqstr, eqprf, lang, true, true),
+                                                       // uppercase singular
+                                                       
cnts.formattedCounter(eqstr, eqprf, lang, false, false),
+                                                       // uppercase plural
+                                                       
cnts.formattedCounter(eqstr, eqprf, lang, false, true)
+                                               );
+                                       }
                                }
                        }
                }
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to