]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetTabular.cpp
Fix (partly) bug #5754: Caption inset not dissolved when unsetting longtable caption...
[features.git] / src / insets / InsetTabular.cpp
index 7b13e010bcbfcbc9d6a8f7398b7f2c590541dcf7..f0c2073d99e0e8937d7407453d7f43fad3e84e94 100644 (file)
@@ -1797,9 +1797,10 @@ Tabular::idx_type Tabular::setLTCaption(row_type row, bool what)
                setRightLine(i, false);
        } else {
                unsetMultiColumn(i);
-               // FIXME: when unsetting a caption row, also all existing captions
-               // in this row must be dissolved, see (bug 5754)
-               // dispatch(FuncRequest(LFUN_INSET_DISSOLVE, "caption-insert"));
+               // When unsetting a caption row, also all existing
+               // captions in this row must be dissolved.
+               lyx::dispatch(FuncRequest(LFUN_INSET_BEGIN));
+               lyx::dispatch(FuncRequest(LFUN_INSET_DISSOLVE, "caption"));
        }
        row_info[row].caption = what;
        return i;