mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Do not attempt to select an empty cell before inserting a longtable caption
Fixes: #9692
This commit is contained in:
parent
616c7b9272
commit
9f777d4bfb
@ -5885,7 +5885,9 @@ void InsetTabular::tabularFeatures(Cursor & cur,
|
||||
cur.setSelection(false);
|
||||
// If a row is set as caption, then also insert
|
||||
// a caption. Otherwise the LaTeX output is broken.
|
||||
lyx::dispatch(FuncRequest(LFUN_INSET_SELECT_ALL));
|
||||
// Select cell if it is non-empty
|
||||
if (cur.lastpos() > 0 || cur.lastpit() > 0)
|
||||
lyx::dispatch(FuncRequest(LFUN_INSET_SELECT_ALL));
|
||||
lyx::dispatch(FuncRequest(LFUN_CAPTION_INSERT));
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user