mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fixed memory bug in append column.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3226 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bc20177045
commit
06b132ec14
@ -307,12 +307,12 @@ void LyXTabular::AppendColumn(int cell)
|
||||
c_info[i][j] = cell_info[i][j - 1];
|
||||
}
|
||||
// care about multicolumns
|
||||
if (cell_info[i][column + 1].multicolumn==CELL_BEGIN_OF_MULTICOLUMN) {
|
||||
cell_info[i][column + 1].multicolumn = CELL_PART_OF_MULTICOLUMN;
|
||||
if (c_info[i][column + 1].multicolumn==CELL_BEGIN_OF_MULTICOLUMN) {
|
||||
c_info[i][column + 1].multicolumn = CELL_PART_OF_MULTICOLUMN;
|
||||
}
|
||||
if ((column + 1) == columns_ ||
|
||||
cell_info[i][column + 2].multicolumn != CELL_PART_OF_MULTICOLUMN) {
|
||||
cell_info[i][column + 1].multicolumn = LyXTabular::CELL_NORMAL;
|
||||
c_info[i][column + 2].multicolumn != CELL_PART_OF_MULTICOLUMN) {
|
||||
c_info[i][column + 1].multicolumn = LyXTabular::CELL_NORMAL;
|
||||
}
|
||||
}
|
||||
cell_info = c_info;
|
||||
|
Loading…
Reference in New Issue
Block a user