]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
Small fixes
[lyx.git] / src / lyxfunc.C
index c73dd858e26058f8c2721273c0005b4406ff4989..242c756850c9da2d917b4c53fa1b3c6b23d19fcf 100644 (file)
@@ -346,6 +346,17 @@ LyXFunc::func_status LyXFunc::getStatus(int ac) const
                disable = !Exporter::IsExportable(buf, "program");
                break;
 
+       case LFUN_INSERTFOOTNOTE:
+       case LFUN_FOOTMELT:
+       case LFUN_MARGINMELT:
+               // Disable insertion of floats in a tabular.
+               disable = false;
+               if (owner->view()->theLockingInset()) {
+                       disable = (owner->view()->theLockingInset()->LyxCode() == Inset::TABULAR_CODE) ||
+                               owner->view()->theLockingInset()->GetFirstLockingInsetOfType(Inset::TABULAR_CODE);
+               }
+               break;
+
        case LFUN_LAYOUT_TABULAR:
                disable = true;
                if (owner->view()->theLockingInset()) {