]> git.lyx.org Git - features.git/commit
Avoid dataloss with \multicolumn
authorEnrico Forestieri <forenr@lyx.org>
Sat, 5 Nov 2016 09:15:37 +0000 (10:15 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 5 Nov 2016 09:15:37 +0000 (10:15 +0100)
commit34ae9dc7f28d33120c27abd2bbbd341dd6044ce0
tree2aace9d07c509d5acc1d01e5a9697eaa13fd06fe
parent75fce32556d2ec3da37acf96e4bafd23b5e5609a
Avoid dataloss with \multicolumn

When \multicolumn{ncol}{align}{content} is parsed and the ncol
parameter is not a numeric value, this parameter is swallowed
and replaced with '1'. Hence, if the file is subsequently saved
a dataloss would occur. With this commit, \multicolumn is not
interpreted when ncol is not a numeric value and is left as is.

See also #10466
src/mathed/MathParser.cpp