GuiTabular.cpp: fix bug #8084

This commit is contained in:
Uwe Stöhr 2012-03-15 02:37:20 +01:00
parent 8e72135a3f
commit 11adfbf64d

View File

@ -443,7 +443,11 @@ docstring GuiTabular::dialogToParams() const
setParam(param_str, Tabular::SET_PWIDTH, width);
// apply the column alignment
setHAlign(param_str);
// multirows inherit the alignment from the column; if a column width
// is set, multicolumns are always left-aligned so that in this case
// its alignment must not be applied (see bug #8084)
if (!(multirowCB->isChecked() && width != "0pt"))
setHAlign(param_str);
// SET_DECIMAL_POINT must come after setHAlign() (ALIGN_DECIMAL)
string decimal_point = fromqstr(decimalPointED->text());