From 1fd32312e9d933f5a1f5f583f42253111ecec2c4 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 5 Feb 2014 19:09:18 -0500 Subject: [PATCH] Right border of multicol should be set if 1 column This commit fixes a bug uncovered by the fix to #8082: If you create a table, select all columns in a row, and set as multicolumn, the right border used to be unset. --- src/insets/InsetTabular.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 10e021c4ae..932b994fec 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -1682,8 +1682,7 @@ Tabular::idx_type Tabular::setMultiColumn(idx_type cell, idx_type number, cs.multicolumn = CELL_BEGIN_OF_MULTICOLUMN; if (column_info[col].alignment != LYX_ALIGN_DECIMAL) cs.alignment = column_info[col].alignment; - if (col > 0) - setRightLine(cell, right_border); + setRightLine(cell, right_border); for (idx_type i = 1; i < number; ++i) { CellData & cs1 = cellInfo(cell + i); -- 2.39.5