diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 1bdec6849e..ddfed79a96 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -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); }