mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
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:
parent
60860ba7e2
commit
84bc1aa4b4
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user