]> git.lyx.org Git - lyx.git/blobdiff - src/Counters.cpp
Revert the box alignment part of 8010b90c
[lyx.git] / src / Counters.cpp
index 79fe76fea9afa0d3d588c3858296643f19f300c6..fe2604044994b1f075f438d636f1353e66be0905 100644 (file)
@@ -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<docstring> & callers) const
 {
-       docstring label;
-
        if (find(callers.begin(), callers.end(), counter) != callers.end()) {
                // recursion detected
                lyxerr << "Warning: Recursion in label for counter `"