mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
104051c151
commit
ba7aa78656
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user