GuiDocument.cpp: code simplifications; thanks Vincent

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34436 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-05-18 21:08:06 +00:00
parent 60860ba7e2
commit 84bc1aa4b4

View File

@ -1305,13 +1305,10 @@ void GuiDocument::setMargins()
if (extern_geometry) {
marginsModule->marginCB->setChecked(false);
setCustomMargins(true);
return;
} else {
marginsModule->marginCB->setChecked(!bp_.use_geometry);
setCustomMargins(!bp_.use_geometry);
}
bool custom = false;
if (bp_.use_geometry)
custom = true;
marginsModule->marginCB->setChecked(!custom);
setCustomMargins(!custom);
}