]> git.lyx.org Git - features.git/commitdiff
Fix single table action (from toolbar).
authorAbdelrazak Younes <younes@lyx.org>
Fri, 19 Feb 2010 12:21:49 +0000 (12:21 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 19 Feb 2010 12:21:49 +0000 (12:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33511 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 1d1abb3f27c9176e0f959188ca8053f789a40280..d6213afcc353cdff34a3ef807b89e499ae4e1eb7 100644 (file)
@@ -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;