v...@lyx.org schreef:
Author: vfr
Date: Sun Nov 22 19:39:48 2009
New Revision: 32156
URL: http://www.lyx.org/trac/changeset/32156
Log:
Move the contents of a row into the caption when setting a row as a longtable
caption.
Modified:
lyx-devel/trunk/src/insets/InsetTabular.cpp
Modified: lyx-devel/trunk/src/insets/InsetTabular.cpp
==============================================================================
--- lyx-devel/trunk/src/insets/InsetTabular.cpp Sun Nov 22 19:37:08 2009
(r32155)
+++ lyx-devel/trunk/src/insets/InsetTabular.cpp Sun Nov 22 19:39:48 2009
(r32156)
@@ -4888,11 +4888,12 @@
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);
and the last for the longtable captions.
to Branch ?
Vincent