Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:42.2
xfig
xfig.3.2.5b-mediaboxrealnb.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xfig.3.2.5b-mediaboxrealnb.dif of Package xfig
--- f_readeps.c +++ f_readeps.c 2013-02-08 11:11:22.717952436 +0000 @@ -77,11 +77,13 @@ read_epsf_pdf(FILE *file, int filetype, /* look for /MediaBox for pdf file */ if (pdf_flag) { - if (!strncmp(buf, "/MediaBox", 8)) { /* look for the MediaBox spec */ + char *s; + for(s=buf; (s=strchr(s,'/')); s++) { + if (!strncmp(s, "/MediaBox", 8)) { /* look for the MediaBox spec */ char *c; - c = strchr(buf, '[') + 1; - if (c && sscanf(c, "%d %d %d %d", &llx, &lly, &urx, &ury) < 4) { + c = strchr(s, '['); + if (c && sscanf(c+1, "%d %d %d %d", &llx, &lly, &urx, &ury) < 4) { llx = lly = 0; urx = paper_sizes[0].width * 72 / PIX_PER_INCH; ury = paper_sizes[0].height * 72 / PIX_PER_INCH; @@ -89,7 +91,9 @@ read_epsf_pdf(FILE *file, int filetype, appres.INCHES ? "Letter" : "A4"); app_flush(); } + break; } + } /* look for bounding box */ } else if (!nested && !strncmp(buf, "%%BoundingBox:", 14)) { if (!strstr(buf, "(atend)")) { /* make sure doesn't say (atend) */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor