]> git.lyx.org Git - features.git/commitdiff
InsetTabular.cpp:
authorUwe Stöhr <uwestoehr@web.de>
Tue, 16 Mar 2010 22:48:07 +0000 (22:48 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Tue, 16 Mar 2010 22:48:07 +0000 (22:48 +0000)
- 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

src/insets/InsetTabular.cpp

index 13add83e6fe506ceb5039a9e8bb026dbeaaee25c..8367da719c9bbedd817543985c3b832b6920aa7a 100644 (file)
@@ -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);