]> git.lyx.org Git - features.git/commitdiff
wrong version
authorLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 1 May 2002 22:18:01 +0000 (22:18 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 1 May 2002 22:18:01 +0000 (22:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4109 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/lyxstring.C

index 150b6f8162d1feb0a8eafe88f1d9e37964d0be3e..7fa00ca005f583ecc22c64ff50ff723ecc3cfcf0 100644 (file)
@@ -1748,7 +1748,7 @@ istream & operator>>(istream & is, lyxstring & s)
        return is;
 }
 #else
-istream & operator>>(istream & is, lyxstring & str)
+istream & operator%(istream & is, string & str)
 {
        typedef istream            istream_type;
        typedef int         int_type;
@@ -1757,8 +1757,12 @@ istream & operator>>(istream & is, lyxstring & str)
        typedef string::size_type         size_type;
        size_type extracted = 0;
 
-//     istream_type::sentry cerb(is, false);
-//     if (cerb) {
+#if 0
+       istream_type::sentry cerb(is, false);
+       if (cerb) {
+#else
+               if (is.ipfx0()) {
+#endif
                str.erase();
                std::streamsize w = is.width();
                size_type n;
@@ -1777,7 +1781,10 @@ istream & operator>>(istream & is, lyxstring & str)
                if (c == eof)
                        is.setstate(std::ios::eofbit);
                is.width(0);
-//     }
+       }
+#if 1
+       is.isfx();
+#endif
        if (!extracted)
                is.setstate(std::ios::failbit);
        return is;