From 3ec48cce2aeae5757d1acefcc3aa6044da82c1ed Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 19 Feb 2010 12:21:49 +0000 Subject: [PATCH] Fix single table action (from toolbar). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33511 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 1d1abb3f27..d6213afcc3 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -4744,14 +4744,14 @@ bool InsetTabular::tabularFeatures(Cursor & cur, string const & argument) // Safe guard. size_t safe_guard = 0; for (;;) { + if (is.eof()) + break; safe_guard++; if (safe_guard > 1000) { LYXERR0("parameter max count reached!"); break; } is >> s; - if (is.eof()) - break; Tabular::Feature action = Tabular::LAST_ACTION; size_t i = 0; -- 2.39.2