From a4ccbf67c3612b335f9bb059b16b0c433ea09281 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 3 Nov 2009 13:06:52 +0000 Subject: [PATCH] Fix (again) bug #5754: Caption inset not dissolved when unsetting longtable caption row. I forgot that inset-begin jumps out of the Inset if the cursor is already at the begin. see r31823. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31839 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index d8a0cc7be1..611e29f01b 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -1800,7 +1800,7 @@ Tabular::idx_type Tabular::setLTCaption(row_type row, bool what) unsetMultiColumn(i); // 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_LINE_BEGIN)); lyx::dispatch(FuncRequest(LFUN_INSET_DISSOLVE, "caption")); } row_info[row].caption = what; -- 2.39.5