]> git.lyx.org Git - features.git/commitdiff
Move the contents of a row into the caption when setting a row as a longtable caption.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 22 Nov 2009 18:39:48 +0000 (18:39 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 22 Nov 2009 18:39:48 +0000 (18:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32156 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 99551f75a6addff17948062d394258be60286e1f..9b0abc9690dd2f0ca0941f64170925bdfcdb47e2 100644 (file)
@@ -4888,11 +4888,12 @@ void InsetTabular::tabularFeatures(Cursor & cur,
                cur.pos() = 0;
                cur.setSelection(false);
 
-               if (set)
+               if (set) {
                        // 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));
-               else {
+               else {
                        FuncRequest fr(LFUN_INSET_DISSOLVE, "caption");
                        if (lyx::getStatus(fr).enabled())
                                lyx::dispatch(fr);