]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_autocorrect.C
*duck*
[features.git] / src / mathed / math_autocorrect.C
index 63315bc651ad61d35bba36244e2150a42298a6e1..1ae1f149af36f107a053d26732cc7b400e1c24b7 100644 (file)
@@ -46,10 +46,12 @@ bool Correction::read(istream & is)
        is >> s1 >> s2 >> s3;
        if (!is)
                return false;
+       if (s2.size() != 1)
+               return false;
        MathArray ar1, ar3;
        mathed_parse_cell(ar1, s1);
        mathed_parse_cell(ar3, s3);
-       if (ar1.size() != 1  ||  s2.size() != 1  ||  ar3.size() !=1)
+       if (ar1.size() != 1 || ar3.size() != 1)
                return false;
        from1_ = ar1.front();
        from2_ = s2[0];