]> git.lyx.org Git - features.git/commitdiff
move error message to a better place...
authorAndré Pönitz <poenitz@gmx.net>
Fri, 10 Aug 2001 11:04:23 +0000 (11:04 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 10 Aug 2001 11:04:23 +0000 (11:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2478 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_gridinset.C
src/mathed/math_parser.C

index 95d76d4262468bf88d592b162eb2ebdde5cdf6f3..b07c576d5c33beabecb4714305d0c8468a89361f 100644 (file)
@@ -312,6 +312,7 @@ int MathGridInset::cellYOffset(int idx) const
        return rowinfo_[row(idx)].offset_;
 }
 
+
 bool MathGridInset::idxUp(int & idx, int & pos) const
 {
        if (idx < ncols())
index 86270f47acf9a39f0c7416c36d3b12f6094b6bde..c6479cc2736dc682274e3a75cb4a7a387843f4c9 100644 (file)
@@ -245,9 +245,9 @@ private:
 unsigned char Parser::getuchar()
 {
        char c = 0;
-       is_.get(c);
        if (!is_.good())
                lyxerr << "The input stream is not well..." << endl;
+       is_.get(c);
        return static_cast<unsigned char>(c);
 }
 
@@ -303,7 +303,7 @@ int Parser::yylex()
        
        while (is_.good()) {
                unsigned char c = getuchar();
-               lyxerr << "reading byte: '" << c << "' code: " << lexcode[c] << endl;
+               //lyxerr << "reading byte: '" << c << "' code: " << lexcode[c] << endl;
                
                if (lexcode[c] == LexNewLine) {
                        ++lineno_;