From 8d69d174c5a7939e47a5454408333c636fd16be0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sat, 14 Feb 2009 21:39:15 +0000 Subject: [PATCH] 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 --- src/insets/InsetTabular.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2