mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
using std::getline
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4113 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
23ae700ec6
commit
4b392c8ff9
@ -67,6 +67,7 @@ using std::pair;
|
||||
using std::endl;
|
||||
using std::ifstream;
|
||||
using std::vector;
|
||||
using std::getline;
|
||||
|
||||
extern string system_lyxdir;
|
||||
extern string build_lyxdir;
|
||||
@ -1043,7 +1044,7 @@ string const getExtFromContents(string const & filename)
|
||||
break;
|
||||
}
|
||||
|
||||
std::getline(ifs, str);
|
||||
getline(ifs, str);
|
||||
lyxerr[Debug::GRAPHICS] << "Scanstring: " << str << endl;
|
||||
|
||||
string const stamp = str.substr(0,2);
|
||||
@ -1371,7 +1372,7 @@ string const readBB_from_PSFile(string const & file)
|
||||
std::ifstream is(file_.c_str());
|
||||
while (is) {
|
||||
string s;
|
||||
std::getline(is,s);
|
||||
getline(is,s);
|
||||
if (contains(s,"%%BoundingBox:") && !contains(s,"atend"))
|
||||
return (frontStrip(s.substr(14)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user