From: Uwe Stöhr Date: Sat, 14 Feb 2009 21:39:15 +0000 (+0000) Subject: InsetTabular.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5777 X-Git-Tag: 2.0.0~7217 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8d69d174c5a7939e47a5454408333c636fd16be0;p=features.git InsetTabular.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5777 Also OK for branch? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28494 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index e6392b814c..29a81cb40e 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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;