mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
InsetTabular.cpp: I was over eager in r28442: there can only be one caption, but several header/footer rows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28474 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
256ba59d5f
commit
39aae243dc
@ -3977,12 +3977,15 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
status.setOnOff(tabular.getLTNewPage(sel_row_start));
|
||||
break;
|
||||
|
||||
// only one row can be the caption
|
||||
case Tabular::TOGGLE_LTCAPTION:
|
||||
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.getRowOfLTLastFoot(sel_row_start, dummyltt));
|
||||
&& !tabular.getRowOfLTLastFoot(sel_row_start, dummyltt)
|
||||
&& (!tabular.haveLTCaption()
|
||||
|| tabular.ltCaption(sel_row_start)));
|
||||
status.setOnOff(tabular.ltCaption(sel_row_start));
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user