From 06cdeb86f59a92cb96bc5e9cfcb0231603feb756 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 18 May 2009 06:22:25 +0000 Subject: [PATCH] * InsetTabular.cpp (getStatus): - allow again to set allocate multiple header attributes to a row, since this is valid (fix bug 5950). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29721 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index ba30546a07..93381ca6ce 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3812,7 +3812,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd, return true; case Tabular::MULTICOLUMN: - // When a row is set as longtable caption, it must not be allowed + // If a row is set as longtable caption, it must not be allowed // to unset that this row is a multicolumn. status.setEnabled(sel_row_start == sel_row_end && !tabular.ltCaption(tabular.cellRow(cur.idx()))); @@ -3938,9 +3938,6 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd, // either a footer or header or caption case Tabular::SET_LTFIRSTHEAD: status.setEnabled(sel_row_start == sel_row_end - && !tabular.getRowOfLTHead(sel_row_start, dummyltt) - && !tabular.getRowOfLTFoot(sel_row_start, dummyltt) - && !tabular.getRowOfLTLastFoot(sel_row_start, dummyltt) && !tabular.ltCaption(sel_row_start)); status.setOnOff(tabular.getRowOfLTFirstHead(sel_row_start, dummyltt)); break; @@ -3951,9 +3948,6 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd, case Tabular::SET_LTHEAD: status.setEnabled(sel_row_start == sel_row_end - && !tabular.getRowOfLTFirstHead(sel_row_start, dummyltt) - && !tabular.getRowOfLTFoot(sel_row_start, dummyltt) - && !tabular.getRowOfLTLastFoot(sel_row_start, dummyltt) && !tabular.ltCaption(sel_row_start)); status.setOnOff(tabular.getRowOfLTHead(sel_row_start, dummyltt)); break; @@ -3964,9 +3958,6 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd, case Tabular::SET_LTFOOT: status.setEnabled(sel_row_start == sel_row_end - && !tabular.getRowOfLTFirstHead(sel_row_start, dummyltt) - && !tabular.getRowOfLTHead(sel_row_start, dummyltt) - && !tabular.getRowOfLTLastFoot(sel_row_start, dummyltt) && !tabular.ltCaption(sel_row_start)); status.setOnOff(tabular.getRowOfLTFoot(sel_row_start, dummyltt)); break; @@ -3977,9 +3968,6 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd, case Tabular::SET_LTLASTFOOT: status.setEnabled(sel_row_start == sel_row_end - && !tabular.getRowOfLTFirstHead(sel_row_start, dummyltt) - && !tabular.getRowOfLTHead(sel_row_start, dummyltt) - && !tabular.getRowOfLTFoot(sel_row_start, dummyltt) && !tabular.ltCaption(sel_row_start)); status.setOnOff(tabular.getRowOfLTLastFoot(sel_row_start, dummyltt)); break; -- 2.39.2