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
This commit is contained in:
Bo Peng 2007-01-17 05:35:03 +00:00
parent 104051c151
commit ba7aa78656

View File

@ -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);