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:
Georg Baum 2007-02-02 21:08:44 +00:00
parent 8842f9a009
commit 1c5815ed31

View File

@ -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);
}