X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLength.cpp;h=10cdd2972615768ec518ef688adf2cd20ad1ac8b;hb=4db3e641ed6765e005343010cb90ee8af26f8f99;hp=bb9ec6a3b90b8096d46af014a537cdd869a9527f;hpb=25ff2f8e2bd4b8567d8a921e478204759e0e942c;p=lyx.git diff --git a/src/Length.cpp b/src/Length.cpp index bb9ec6a3b9..10cdd29726 100644 --- a/src/Length.cpp +++ b/src/Length.cpp @@ -19,7 +19,6 @@ #include "LyXRC.h" #include "support/docstream.h" -#include "support/lassert.h" #include #include @@ -106,8 +105,7 @@ string const Length::asLatexString() const os << val_ / 100.0 << "\\paperheight"; break; case UNIT_NONE: - // One should not try to ouput latex code for an empty length - LASSERT(false, break); + break; default: os << val_ << unit_name[unit_]; break;