]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetindex.C
index bdfdea678673c11c6b6e790c778bd37f964b85cb..d16a47a5d9771455202775366c4b752e7c15ff41 100644 (file)
@@ -52,7 +52,7 @@ dispatch_result InsetIndex::localDispatch(FuncRequest const & cmd)
                        return DISPATCHED;
 
                default:
-                       return UNDISPATCHED;
+                       return InsetCommand::localDispatch(cmd);
        }
 }
 
@@ -65,9 +65,9 @@ int InsetIndex::docbook(Buffer const *, ostream & os, bool) const
 }
 
 
-Inset::Code InsetIndex::lyxCode() const
+InsetOld::Code InsetIndex::lyxCode() const
 {
-       return Inset::INDEX_CODE;
+       return InsetOld::INDEX_CODE;
 }
 
 
@@ -98,7 +98,7 @@ void InsetPrintIndex::validate(LaTeXFeatures & features) const
 }
 
 
-Inset::Code InsetPrintIndex::lyxCode() const
+InsetOld::Code InsetPrintIndex::lyxCode() const
 {
-       return Inset::INDEX_PRINT_CODE;
+       return InsetOld::INDEX_PRINT_CODE;
 }