mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Bug fix of the day: 3200 (Not possible to insert short title to captions)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17029 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8842f9a009
commit
1c5815ed31
@ -29,6 +29,7 @@
|
||||
#include "output_latex.h"
|
||||
#include "outputparams.h"
|
||||
#include "paragraph.h"
|
||||
#include "paragraph_funcs.h"
|
||||
#include "TocBackend.h"
|
||||
|
||||
#include "frontends/FontMetrics.h"
|
||||
@ -206,6 +207,10 @@ bool InsetCaption::getStatus(LCursor & cur, FuncRequest const & cmd,
|
||||
status.enabled(false);
|
||||
return true;
|
||||
|
||||
case LFUN_OPTIONAL_INSERT:
|
||||
status.enabled(numberOfOptArgs(cur.paragraph()) == 0);
|
||||
return true;
|
||||
|
||||
default:
|
||||
return InsetText::getStatus(cur, cmd, status);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user