]> git.lyx.org Git - features.git/commitdiff
InsetTabular.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5777
authorUwe Stöhr <uwestoehr@web.de>
Sat, 14 Feb 2009 21:39:15 +0000 (21:39 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 14 Feb 2009 21:39:15 +0000 (21:39 +0000)
Also OK for branch?

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

src/insets/InsetTabular.cpp

index e6392b814ca51e8a9d6451ed51c013c453a7741d..29a81cb40e8c75522562a98541157b7fa5595b59 100644 (file)
@@ -2935,7 +2935,8 @@ void InsetTabular::setBuffer(Buffer & buf)
 
 bool InsetTabular::insetAllowed(InsetCode code) const
 {
-       if (code == MATHMACRO_CODE)
+       if (code == MATHMACRO_CODE
+               || (code == CAPTION_CODE && !tabular.is_long_tabular))
                return false;
 
        return true;