From: Abdelrazak Younes Date: Fri, 19 Feb 2010 08:20:58 +0000 (+0000) Subject: Tabular dialog: fix border setting/unsetting bug. X-Git-Tag: 2.0.0~4000 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=98ed6f399e86243a78183dc1e66762b156f37685;p=features.git Tabular dialog: fix border setting/unsetting bug. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33505 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiTabular.cpp b/src/frontends/qt4/GuiTabular.cpp index 4d3e3e6c11..d014d5dc73 100644 --- a/src/frontends/qt4/GuiTabular.cpp +++ b/src/frontends/qt4/GuiTabular.cpp @@ -376,15 +376,16 @@ docstring GuiTabular::dialogToParams() const else if (!borders->getTop() && !borders->getBottom() && !borders->getLeft() && !borders->getRight()) setParam(param_str, Tabular::UNSET_ALL_LINES); - else if (borders->getLeft()) - setParam(param_str, Tabular::TOGGLE_LINE_LEFT); - else if (borders->getRight()) - setParam(param_str, Tabular::TOGGLE_LINE_RIGHT); - else if (borders->getTop()) - setParam(param_str, Tabular::TOGGLE_LINE_TOP); - else if (borders->getBottom()) - setParam(param_str, Tabular::TOGGLE_LINE_BOTTOM); - + else { + if (borders->getLeft()) + setParam(param_str, Tabular::TOGGLE_LINE_LEFT); + if (borders->getRight()) + setParam(param_str, Tabular::TOGGLE_LINE_RIGHT); + if (borders->getTop()) + setParam(param_str, Tabular::TOGGLE_LINE_TOP); + if (borders->getBottom()) + setParam(param_str, Tabular::TOGGLE_LINE_BOTTOM); + } // apply the special alignment string special = fromqstr(specialAlignmentED->text());