cur.pos() = 0;
cur.setSelection(false);
cur.pos() = 0;
cur.setSelection(false);
// When a row is set as caption, then also insert
// a caption. Otherwise the LaTeX output is broken.
// When a row is set as caption, then also insert
// a caption. Otherwise the LaTeX output is broken.
+ lyx::dispatch(FuncRequest(LFUN_INSET_SELECT_ALL));
lyx::dispatch(FuncRequest(LFUN_CAPTION_INSERT));
lyx::dispatch(FuncRequest(LFUN_CAPTION_INSERT));
FuncRequest fr(LFUN_INSET_DISSOLVE, "caption");
if (lyx::getStatus(fr).enabled())
lyx::dispatch(fr);
FuncRequest fr(LFUN_INSET_DISSOLVE, "caption");
if (lyx::getStatus(fr).enabled())
lyx::dispatch(fr);