]> git.lyx.org Git - features.git/commitdiff
Handle correctly zero table special arguments.
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 26 Jun 2018 08:51:16 +0000 (10:51 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 27 Jun 2018 06:16:59 +0000 (08:16 +0200)
Fixes: #10247
src/frontends/qt4/GuiTabular.cpp
status.23x

index 71be3085749ed5f63fae82753c424c188f7f462f..645b7744c60d9c0f65167606467c84729655ce07 100644 (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);
index fd5326debea2e109b9ae32bb65a3fd14b37f50f7..4310a1a0ed5a9d27ad60b6f505e0b8d6516a766f 100644 (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