X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferParams.cpp;h=2a3841f85dd976b9999fd834588cc4654589fc30;hb=04e6076ebb889a3215eaa4ff5cb200822611185c;hp=d483cbbd749af65d12504409b690abf1c3ac9c61;hpb=01af564dc28d71ba8caa54f2d30f88ec54b627b4;p=lyx.git diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index d483cbbd74..2a3841f85d 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -534,6 +534,8 @@ VSpace const & BufferParams::getDefSkip() const void BufferParams::setDefSkip(VSpace const & vs) { + // DEFSKIP will cause an infinite loop + LASSERT(vs.kind() != VSpace::DEFSKIP, return); pimpl_->defskip = vs; }