]> git.lyx.org Git - features.git/commitdiff
GuiTabular.cpp: fix bug #8084
authorUwe Stöhr <uwestoehr@lyx.org>
Thu, 15 Mar 2012 01:37:20 +0000 (02:37 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Thu, 15 Mar 2012 01:37:20 +0000 (02:37 +0100)
src/frontends/qt4/GuiTabular.cpp

index 7a197231f93c087a73052f2f81cb119a9be7eb38..ef85e10121d6828bcef7e8ef88a03cd6bc881bf2 100644 (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());