mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
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:
parent
f981863cde
commit
31f824e447
@ -2273,9 +2273,7 @@ void GuiDocument::paramsToDialog()
|
|||||||
textLayoutModule->indentRB->setChecked(true);
|
textLayoutModule->indentRB->setChecked(true);
|
||||||
string indentation = bp_.getIndentation().asLyXCommand();
|
string indentation = bp_.getIndentation().asLyXCommand();
|
||||||
int indent = 0;
|
int indent = 0;
|
||||||
if (indentation == "default")
|
if (indentation != "default") {
|
||||||
indent = 0;
|
|
||||||
else {
|
|
||||||
lengthToWidgets(textLayoutModule->indentLE,
|
lengthToWidgets(textLayoutModule->indentLE,
|
||||||
textLayoutModule->indentLengthCO,
|
textLayoutModule->indentLengthCO,
|
||||||
indentation, defaultUnit);
|
indentation, defaultUnit);
|
||||||
|
Loading…
Reference in New Issue
Block a user