GuiDocument.cpp: code simplification spotted by Jürgen

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30701 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-07-20 01:34:09 +00:00
parent f981863cde
commit 31f824e447

View File

@ -2273,9 +2273,7 @@ void GuiDocument::paramsToDialog()
textLayoutModule->indentRB->setChecked(true);
string indentation = bp_.getIndentation().asLyXCommand();
int indent = 0;
if (indentation == "default")
indent = 0;
else {
if (indentation != "default") {
lengthToWidgets(textLayoutModule->indentLE,
textLayoutModule->indentLengthCO,
indentation, defaultUnit);