git ssb

0+

cel / freecheck



Commit c281250d2da897407779b8e4f1129d45444763ca

Handle negative bounding box

ImageMagick convert(1) gives me a EPS file with negative zeros (-0) in the
bounding box
Charles Lehner committed on 4/13/2016, 7:36:01 PM
Parent: feb0e084199fb46a40a769d11a23843969deb0e8

Files changed

freecheckchanged
freecheckView
@@ -330,9 +330,9 @@
330330 break if /^%%EndComments/;
331331 next unless s/^%%((?:HiRes)?BoundingBox):\s*//;
332332 my $hires = ($1 eq 'HiResBoundingBox');
333333 $foundbbox = 1;
334- if (/^(\d+(?:\.\d+)?(?:\s+\d+(?:\.\d+)?){3})\s*(?:%.*)?$/) {
334 + if (/^(-?\d+(?:\.\d+)?(?:\s+-?\d+(?:\.\d+)?){3})\s*(?:%.*)?$/) {
335335 $Definitions{'LogoBBox'} = $1;
336336 } else {
337337 $error .= "Error - Can't parse EPS Logo BoundingBox comment\n";
338338 }

Built with git-ssb-web