* InsetTabular.cpp:

- only set/unset a caption if necessary.

This fixes the setting of multicols via dialog (part of bug 6985)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35929 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-10-30 11:28:16 +00:00
parent 023afde520
commit a3a51b545c

View File

@ -5383,6 +5383,8 @@ void InsetTabular::tabularFeatures(Cursor & cur,
break;
case Tabular::SET_LTCAPTION: {
if (tabular.ltCaption(row))
break;
cur.idx() = tabular.setLTCaption(row, true);
cur.pit() = 0;
cur.pos() = 0;
@ -5395,6 +5397,8 @@ void InsetTabular::tabularFeatures(Cursor & cur,
}
case Tabular::UNSET_LTCAPTION: {
if (!tabular.ltCaption(row))
break;
cur.idx() = tabular.setLTCaption(row, false);
cur.pit() = 0;
cur.pos() = 0;