# HG changeset patch # User Alpar Juttner # Date 1228772835 0 # Node ID a07eb292dd95da0bf86cc3d265ad7317745da855 # Parent d05ad26c4d717b2d167c2427e4bbeb45546508c7# Parent 33e9699c7d3a7861ea7246f59160b2302e39c4cf Merge bugfix #193 diff -r d05ad26c4d71 -r a07eb292dd95 lemon/lgf_reader.h --- a/lemon/lgf_reader.h Sat Dec 06 00:00:00 2008 +0000 +++ b/lemon/lgf_reader.h Mon Dec 08 21:47:15 2008 +0000 @@ -870,7 +870,9 @@ while (readSuccess() && line >> c && c != '@') { readLine(); } - line.putback(c); + if (readSuccess()) { + line.putback(c); + } } void readNodes() { @@ -1699,7 +1701,9 @@ while (readSuccess() && line >> c && c != '@') { readLine(); } - line.putback(c); + if (readSuccess()) { + line.putback(c); + } } void readNodes() { @@ -2226,7 +2230,9 @@ while (readSuccess() && line >> c && c != '@') { readLine(); } - line.putback(c); + if (readSuccess()) { + line.putback(c); + } } public: @@ -2567,7 +2573,9 @@ while (readSuccess() && line >> c && c != '@') { readLine(); } - line.putback(c); + if (readSuccess()) { + line.putback(c); + } } void readMaps(std::vector& maps) {