Commit c281250d2da897407779b8e4f1129d45444763ca
Handle negative bounding box
ImageMagick convert(1) gives me a EPS file with negative zeros (-0) in the bounding boxCharles Lehner committed on 4/13/2016, 7:36:01 PM
Parent: feb0e084199fb46a40a769d11a23843969deb0e8
Files changed
freecheck | changed |
freecheck | ||
---|---|---|
@@ -330,9 +330,9 @@ | ||
330 | 330 … | break if /^%%EndComments/; |
331 | 331 … | next unless s/^%%((?:HiRes)?BoundingBox):\s*//; |
332 | 332 … | my $hires = ($1 eq 'HiResBoundingBox'); |
333 | 333 … | $foundbbox = 1; |
334 | - if (/^(\d+(?:\.\d+)?(?:\s+\d+(?:\.\d+)?){3})\s*(?:%.*)?$/) { | |
334 … | + if (/^(-?\d+(?:\.\d+)?(?:\s+-?\d+(?:\.\d+)?){3})\s*(?:%.*)?$/) { | |
335 | 335 … | $Definitions{'LogoBBox'} = $1; |
336 | 336 … | } else { |
337 | 337 … | $error .= "Error - Can't parse EPS Logo BoundingBox comment\n"; |
338 | 338 … | } |
Built with git-ssb-web