More safety here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36013 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-03 20:15:04 +00:00
parent 01af564dc2
commit f7e80e6681

View File

@ -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;
}