#6694 - reset line spacing to single if no custom size is defined

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34405 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-05-14 19:12:59 +00:00
parent 74c980af62
commit 27c79955e9

View File

@ -2163,11 +2163,15 @@ void GuiDocument::applyView()
case 2:
bp_.spacing().set(Spacing::Double);
break;
case 3:
bp_.spacing().set(Spacing::Other,
widgetToDoubleStr(textLayoutModule->lspacingLE));
case 3: {
string s = widgetToDoubleStr(textLayoutModule->lspacingLE);
if (s.empty())
bp_.spacing().set(Spacing::Single);
else
bp_.spacing().set(Spacing::Other, s);
break;
}
}
if (textLayoutModule->twoColumnCB->isChecked())
bp_.columns = 2;