X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FVSpace.cpp;h=aad2a6e79a5df4b4a0621407151c8d84694f96db;hb=f6dd83a93621df9445c99219ab9d3cf1d00c2b82;hp=72315072d61c8b646e47655f54fb0f57931ff8d1;hpb=9b8773826cb2a59eb563e6f98883912ce591047e;p=lyx.git diff --git a/src/VSpace.cpp b/src/VSpace.cpp index 72315072d6..aad2a6e79a 100644 --- a/src/VSpace.cpp +++ b/src/VSpace.cpp @@ -147,9 +147,10 @@ string const VSpace::asLatexCommand(BufferParams const & params) const : "\\vspace{" + len_.asLatexString() + '}'; default: - LASSERT(false, /**/); - return string(); + LATTEST(false); + // fall through in release mode } + return string(); } @@ -200,6 +201,7 @@ string VSpace::asHTMLLength() const return result; } + int VSpace::inPixels(BufferView const & bv) const { // Height of a normal line in pixels (zoom factor considered) @@ -229,9 +231,10 @@ int VSpace::inPixels(BufferView const & bv) const return len_.len().inPixels(bv.workWidth()); default: - LASSERT(false, /**/); - return 0; + LATTEST(false); + // fall through in release mode } + return 0; }