Fix border when inserting column (#10538, #9306)

When inserting a column in tabular, the border of the new column
should be copied from the border of the (previously) right-most
column.

Also remove a redundant line. The line

    setRightLine(i, true);

was only reached if rightLine(i) was true.

Patch from Daniel Ramöller.
This commit is contained in:
Scott Kostyshak 2017-06-04 15:06:18 -04:00
parent 482d0ebc66
commit b1ddae0514

View File

@ -878,8 +878,8 @@ void Tabular::insertColumn(col_type const col, bool copy)
setBottomLine(i, bottomLine(j));
setTopLine(i, topLine(j));
setLeftLine(i, leftLine(j));
setRightLine(i, rightLine(j));
if (rightLine(i) && rightLine(j)) {
setRightLine(i, true);
setRightLine(j, false);
}
if (buffer().params().track_changes)