bool const enable_valign =
!multirowCB->isChecked()
&& !widgetsToLength(columnWidthED, columnWidthUnitLC).empty()
- && specialAlignmentED->text().isEmpty();
+ && specialAlignmentED->text().isEmpty()
+ && funcEnabled(Tabular::VALIGN_BOTTOM);
vAlignCO->setEnabled(enable_valign);
vAlignLA->setEnabled(enable_valign);
col_type sel_col_end = 0;
Tabular::ltType dummyltt;
bool flag = true;
+ bool const tabularx = tabular.hasVarwidthColumn();
getSelection(cur, sel_row_start, sel_row_end, sel_col_start, sel_col_end);
flag = false;
// fall through
case Tabular::VALIGN_BOTTOM:
- status.setEnabled((!tabular.getPWidth(cur.idx()).zero()
+ status.setEnabled(!tabularx
+ && (!tabular.getPWidth(cur.idx()).zero()
|| tabular.getUsebox(cur.idx()) == Tabular::BOX_VARWIDTH));
status.setOnOff(
tabular.getVAlignment(cur.idx(), flag) == Tabular::LYX_VALIGN_BOTTOM);
flag = false;
// fall through
case Tabular::VALIGN_MIDDLE:
- status.setEnabled((!tabular.getPWidth(cur.idx()).zero()
+ status.setEnabled(!tabularx
+ && (!tabular.getPWidth(cur.idx()).zero()
|| tabular.getUsebox(cur.idx()) == Tabular::BOX_VARWIDTH));
status.setOnOff(
tabular.getVAlignment(cur.idx(), flag) == Tabular::LYX_VALIGN_MIDDLE);
- Display values of cross-references in tooltips for forward references.
+- Disable vertical alignment in tables with variable width columns (tabularx
+ and xltable), as this is not supported by the packages. Also fix the
+ disabling mechanism in the table dialog.
+
* INTERNALS