mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Fix bug 5753: http://bugzilla.lyx.org/show_bug.cgi?id=5753.
Crash when setting caption on a row with a multicolumn. If there is already a multicolumn on the row, the number of cells is different from column_info.size(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28427 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
20d5148dca
commit
0be0516d28
@ -1745,7 +1745,7 @@ Tabular::idx_type Tabular::setLTCaption(row_type row, bool what)
|
||||
{
|
||||
idx_type i = getFirstCellInRow(row);
|
||||
if (what) {
|
||||
setMultiColumn(i, column_info.size());
|
||||
setMultiColumn(i, numberOfCellsInRow(i));
|
||||
setTopLine(i, false);
|
||||
setBottomLine(i, false);
|
||||
setLeftLine(i, false);
|
||||
|
Loading…
Reference in New Issue
Block a user