Handle correctly zero table special arguments.

Fixes: #10247
This commit is contained in:
Juergen Spitzmueller 2018-06-26 10:51:16 +02:00
parent 03fef44b54
commit ab450346b5
2 changed files with 5 additions and 1 deletions

View File

@ -33,6 +33,7 @@
#include "support/convert.h"
#include "support/debug.h"
#include "support/lstrings.h"
#include <QCheckBox>
#include <QPushButton>
@ -560,7 +561,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);

View File

@ -258,6 +258,9 @@ What's new
- Honor the syntax highlighting package choice when adding listing params
without actually inserting a listing (bug 11151).
- Handle correctly zero table special arguments (bug 10247).
* INTERNALS
- Fix bug that TeX files were not detected when reconfiguring LyX