]> git.lyx.org Git - features.git/commitdiff
Don't try to show 1000 as a roman number
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Feb 2015 14:59:19 +0000 (15:59 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Feb 2015 14:59:19 +0000 (15:59 +0100)
Fixes coverity issue 23360.

src/Counters.cpp

index 79fe76fea9afa0d3d588c3858296643f19f300c6..56ab1b508c1a544e6e5762aae8190a841150e54e 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;