]> git.lyx.org Git - features.git/commitdiff
Really fix bug 675:
authorAbdelrazak Younes <younes@lyx.org>
Thu, 1 Feb 2007 14:18:50 +0000 (14:18 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 1 Feb 2007 14:18:50 +0000 (14:18 +0000)
http://bugzilla.lyx.org/show_bug.cgi?id=675

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17006 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfunc.C

index 99db51a021004283b753ccc15435461b4a8b68c2..776b220ff20ba0b7a1d4259bd4e6d9a948c97277 100644 (file)
@@ -576,7 +576,8 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
        }
 
        case LFUN_DIALOG_SHOW_NEW_INSET:
-               enable = cur.inset().lyxCode() != InsetBase::ERT_CODE;
+               enable = cur.inset().lyxCode() != InsetBase::ERT_CODE 
+                       && cur.inset().lyxCode() != InsetBase::CAPTION_CODE;
                break;
 
        case LFUN_DIALOG_UPDATE: {