]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Make sure we center displayed equations.
[lyx.git] / src / Buffer.cpp
index f4d238fb293299c15f813ba440a052defdfa5b02..12e3400f7c2ee402308bd17f9a81878e596c9a93 100644 (file)
@@ -4622,6 +4622,11 @@ static depth_type getDepth(DocIterator const & it)
                if (!it[i].inset().inMathed())
                        depth += it[i].paragraph().getDepth() + 1;
        // remove 1 since the outer inset does not count
+       // we should have at least one non-math inset, so
+       // depth should nevery be 0. but maybe it is worth
+       // marking this, just in case.
+       LATTEST(depth > 0);
+       // coverity[INTEGER_OVERFLOW]
        return depth - 1;
 }