mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
InsetTabular.cpp:
- reintroduce issue that was removed in r33731 (multirow cells are by default left-aligned, LyX does not yet support to change this) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33782 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
28c759e171
commit
9231f19340
@ -1549,6 +1549,13 @@ Tabular::idx_type Tabular::setMultiRow(idx_type cell, idx_type number)
|
||||
CellData & cs = cellInfo(cell);
|
||||
cs.multirow = CELL_BEGIN_OF_MULTIROW;
|
||||
cs.valignment = LYX_VALIGN_MIDDLE;
|
||||
// FIXME: the horizontal alignment of multirow cells can only
|
||||
// be changed for the whole table,
|
||||
// support for this needs to be implemented but us a fileformat
|
||||
// change (assigning this to uwestoehr)
|
||||
// until LyX supports this, use the deault alignment of multirow
|
||||
// cells: left
|
||||
cs.alignment = LYX_ALIGN_LEFT;
|
||||
|
||||
// set the bottom row of the last selected cell
|
||||
setBottomLine(cell, bottomLine(cell + (number - 1)*ncols()));
|
||||
@ -1606,6 +1613,7 @@ void Tabular::unsetMultiRow(idx_type cell)
|
||||
return;
|
||||
|
||||
cellInfo(cell).valignment = LYX_VALIGN_TOP;
|
||||
cellInfo(cell).alignment = LYX_ALIGN_CENTER;
|
||||
row_type const row = cellRow(cell);
|
||||
col_type const col = cellColumn(cell);
|
||||
row_type const span = rowSpan(cell);
|
||||
|
Loading…
Reference in New Issue
Block a user