]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTabular.cpp
Fix single table action (from toolbar).
[lyx.git] / 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;