Handle correctly zero table special arguments.

Fixes: #10247
This commit is contained in:
Juergen Spitzmueller 2018-06-26 10:51:16 +02:00
parent 7af1a065e8
commit fc9d47f7f4

View File

@ -33,6 +33,7 @@
#include "support/convert.h" #include "support/convert.h"
#include "support/debug.h" #include "support/debug.h"
#include "support/lstrings.h"
#include <QCheckBox> #include <QCheckBox>
#include <QPushButton> #include <QPushButton>
@ -576,7 +577,7 @@ docstring GuiTabular::dialogToParams() const
// apply the special alignment // apply the special alignment
string special = fromqstr(specialAlignmentED->text()); string special = fromqstr(specialAlignmentED->text());
if (special.empty()) if (support::trim(special).empty())
special = "none"; special = "none";
if (multicolumnCB->isChecked()) if (multicolumnCB->isChecked())
setParam(param_str, Tabular::SET_SPECIAL_MULTICOLUMN, special); setParam(param_str, Tabular::SET_SPECIAL_MULTICOLUMN, special);