mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix bug #8114: LyX does not retrieve negative bbox parameters
LyX fails to read the bounding box from an EPS file if it has negative values. Adjusting the regex will overcome this problem. Negative values do not pose big problems later on, but the GUI doesn't handle it correctly yet (see bug #5718).
This commit is contained in:
parent
91bc04946f
commit
f0754582b8
@ -57,8 +57,8 @@ string const readBB_from_PSFile(FileName const & file)
|
||||
return string();
|
||||
}
|
||||
|
||||
static lyx::regex bbox_re(
|
||||
"^%%BoundingBox:\\s*([[:digit:]]+)\\s+([[:digit:]]+)\\s+([[:digit:]]+)\\s+([[:digit:]]+)");
|
||||
static lyx::regex bbox_re("^%%BoundingBox:\\s*([-]*[[:digit:]]+)"
|
||||
"\\s+([-]*[[:digit:]]+)\\s+([-]*[[:digit:]]+)\\s+([-]*[[:digit:]]+)");
|
||||
ifstream is(file_.toFilesystemEncoding().c_str());
|
||||
while (is) {
|
||||
string s;
|
||||
|
Loading…
Reference in New Issue
Block a user