From: Scott Kostyshak Date: Sun, 4 Jun 2017 19:06:18 +0000 (-0400) Subject: Fix border when inserting column (#10538, #9306) X-Git-Tag: 2.3.0beta1~315 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b1ddae0514a4b4daf4e6d248e2ce5171e4144233;p=features.git 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. --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 7a94ebf520..a0a2490701 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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)