GuiTabular.cpp: backport fix for #3517

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36801 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-12-10 03:04:01 +00:00
parent f3cb4911ab
commit e4bb80965a
2 changed files with 15 additions and 8 deletions

View File

@ -739,8 +739,10 @@ void GuiTabular::updateContents()
lengthToWidgets(widthED, widthUnit, colwidth, default_unit);
}
widthED->setEnabled(!isReadonly);
widthUnit->setEnabled(!isReadonly);
// if there is a LaTeX argument, the width and alignment will be overwritten
// therefore disable them in this case
widthED->setEnabled(!isReadonly && specialAlignmentED->text().isEmpty());
widthUnit->setEnabled(!isReadonly && specialAlignmentED->text().isEmpty());
hAlignCB->clear();
hAlignCB->addItem(qt_("Left"));
@ -791,8 +793,9 @@ void GuiTabular::updateContents()
valign = 0;
vAlignCB->setCurrentIndex(valign);
hAlignCB->setEnabled(true);
vAlignCB->setEnabled(!pwidth.zero());
hAlignCB->setEnabled(specialAlignmentED->text().isEmpty());
vAlignCB->setEnabled(!pwidth.zero()
&& specialAlignmentED->text().isEmpty());
if (!tabular_.is_long_tabular) {
headerStatusCB->setChecked(false);

View File

@ -99,12 +99,16 @@ What's new
- Fix the painting of non-InsetText insets with a transparent
background as well as the description of an InsetCaption (bug 4889).
- Fix unexpected behavior when inserting big math delimiters around a matrix
(bug 7088).
- Fix unexpected behavior when inserting big math delimiters around a
matrix (bug 7088).
- Fix save of personal dictionary path to preferences. (bug 6688)
- Fix save of personal dictionary path to preferences (bug 6688).
- Fix unexpected behavior of some "insert math" menu/toolbar entries. (bug 6709)
- Fix unexpected behavior of some "insert math" menu/toolbar entries
(bug 6709).
- In the table dialog, disable the column width and column alignment when
there is a LaTeX argument (bug 3517).
* DOCUMENTATION AND LOCALIZATION