commit b1ddae0514a4b4daf4e6d248e2ce5171e4144233
Author: Scott Kostyshak <[email protected]>
Date: Sun Jun 4 15:06:18 2017 -0400
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.
---
src/insets/InsetTabular.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 7a94ebf..a0a2490 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)