X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCounters.cpp;h=fe2604044994b1f075f438d636f1353e66be0905;hb=d5ed835225d8ec27225cd7bb415e1ac7db41a512;hp=79fe76fea9afa0d3d588c3858296643f19f300c6;hpb=edddb47bae9a29f678e083807fc12e03135f5065;p=lyx.git diff --git a/src/Counters.cpp b/src/Counters.cpp index 79fe76fea9..fe26040449 100644 --- a/src/Counters.cpp +++ b/src/Counters.cpp @@ -400,7 +400,7 @@ docstring const romanCounter(int const n) "DC", "DCC", "DCCC", "CM" }; - if (n > 1000 || n < 1) + if (n >= 1000 || n < 1) return from_ascii("??"); int val = n; @@ -525,8 +525,6 @@ docstring Counters::flattenLabelString(docstring const & counter, string const & lang, vector & callers) const { - docstring label; - if (find(callers.begin(), callers.end(), counter) != callers.end()) { // recursion detected lyxerr << "Warning: Recursion in label for counter `"