From ba7aa7865629c55c8f0bc8b956360f5ac18b4d31 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Wed, 17 Jan 2007 05:35:03 +0000 Subject: [PATCH] Use getline() to read filenames with space in session.C git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16721 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/session.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session.C b/src/session.C index 51a210e83e..fd2f26a7fc 100644 --- a/src/session.C +++ b/src/session.C @@ -184,7 +184,7 @@ void LastFilePosSection::read(istream & is) itmp.ignore(2); // ignore ", " itmp >> pos; itmp.ignore(2); // ignore ", " - itmp >> fname; + getline(itmp, fname); if (!absolutePath(fname)) continue; FileName const file(fname); @@ -253,7 +253,7 @@ void BookmarksSection::read(istream & is) itmp.ignore(2); // ignore ", " itmp >> pos; itmp.ignore(2); // ignore ", " - itmp >> fname; + getline(itmp, fname); if (!absolutePath(fname)) continue; FileName const file(fname);