From: Juergen Spitzmueller Date: Tue, 26 Jun 2018 08:51:16 +0000 (+0200) Subject: Handle correctly zero table special arguments. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3343 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fc9d47f7f488477ba09fe637b81af2356feef8c8;p=features.git Handle correctly zero table special arguments. Fixes: #10247 --- diff --git a/src/frontends/qt4/GuiTabular.cpp b/src/frontends/qt4/GuiTabular.cpp index 284bf8776b..4ac80ad77c 100644 --- a/src/frontends/qt4/GuiTabular.cpp +++ b/src/frontends/qt4/GuiTabular.cpp @@ -33,6 +33,7 @@ #include "support/convert.h" #include "support/debug.h" +#include "support/lstrings.h" #include #include @@ -576,7 +577,7 @@ docstring GuiTabular::dialogToParams() const // apply the special alignment string special = fromqstr(specialAlignmentED->text()); - if (special.empty()) + if (support::trim(special).empty()) special = "none"; if (multicolumnCB->isChecked()) setParam(param_str, Tabular::SET_SPECIAL_MULTICOLUMN, special);