Andre Poenitz wrote: > We definitely should switch to a more user friendly error handling then > plain crashs. While it might be annoying that one cannot properly paste > form the clipboard we should not crash...
On Linux, it only crashes with --enable-stdlib-debug. The attached patch fixes this particular crash for me, but it's rater a shot in the dark. Does it make sense, André? Jürgen
Index: src/mathed/MathParser.cpp =================================================================== --- src/mathed/MathParser.cpp (Revision 21417) +++ src/mathed/MathParser.cpp (Arbeitskopie) @@ -463,8 +463,12 @@ char_type Parser::getChar() { - if (!good()) + if (!good()) { error("The input stream is not well..."); + putback(); + char_type dummy; + return dummy; + } return tokens_[pos_++].character(); }