summaryrefslogtreecommitdiff
blob: b55ddbd4a3eeca0eabc3974091f195b452ad9339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Fix bounding box recognition
https://src.fedoraproject.org/rpms/gv/blob/rawhide/f/gv-bounding-box.patch

diff a/src/ps.c b/src/ps.c
--- a/src/ps.c
+++ b/src/ps.c
@@ -357,7 +357,7 @@ static int parse_boundingbox(const char *l, int *boundingbox) {
 	while (*p == ' ' || *p == '\t')
 		p++;
 	fury = strtod(p, &pe);
-	if (*pe != '\n' && *pe != '\0' && *pe != ' ' && *pe != '\t') {
+	if (*pe != '\n'  && *pe != '\r'&& *pe != '\0' && *pe != ' ' && *pe != '\t') {
 		return 0;
 	}