]> git.lyx.org Git - features.git/commitdiff
Bug fix of the day: 3200 (Not possible to insert short title to captions)
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 2 Feb 2007 21:08:44 +0000 (21:08 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 2 Feb 2007 21:08:44 +0000 (21:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17029 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insetcaption.C

index 1814bb6022aea1de03bcb1ebaf67dcb8c4dce945..2ea714cb6d1ec1f469a5917d8d7a3bb773601854 100644 (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);
        }