.
OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=31
This commit is contained in:
parent
4a4e12d2ed
commit
81defae636
25
xfig.3.2.5b-mediaboxrealnb.dif
Normal file
25
xfig.3.2.5b-mediaboxrealnb.dif
Normal file
@ -0,0 +1,25 @@
|
||||
--- f_readeps.c
|
||||
+++ f_readeps.c 2013-02-07 14:10:06.681492792 +0000
|
||||
@@ -79,15 +79,21 @@ read_epsf_pdf(FILE *file, int filetype,
|
||||
if (pdf_flag) {
|
||||
if (!strncmp(buf, "/MediaBox", 8)) { /* look for the MediaBox spec */
|
||||
char *c;
|
||||
+ float rllx, rlly, rurx, rury;
|
||||
|
||||
c = strchr(buf, '[') + 1;
|
||||
- if (c && sscanf(c, "%d %d %d %d", &llx, &lly, &urx, &ury) < 4) {
|
||||
+ if (c && sscanf(c, "%d %d %d %d", "%f %f %f %f", &rllx, &rlly, &rurx, &rury) < 4) {
|
||||
llx = lly = 0;
|
||||
urx = paper_sizes[0].width * 72 / PIX_PER_INCH;
|
||||
ury = paper_sizes[0].height * 72 / PIX_PER_INCH;
|
||||
file_msg("Bad MediaBox in header, assuming %s size",
|
||||
appres.INCHES ? "Letter" : "A4");
|
||||
app_flush();
|
||||
+ } else {
|
||||
+ llx = round(rllx);
|
||||
+ lly = round(rlly);
|
||||
+ urx = round(rurx);
|
||||
+ ury = round(rury);
|
||||
}
|
||||
}
|
||||
/* look for bounding box */
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 7 14:12:21 UTC 2013 - werner@suse.de
|
||||
|
||||
- Add xfig.3.2.5b-mediaboxrealnb.dif to fix regarding pdf import,
|
||||
reported by Loic Le Guyader compare with Debian bug #530898
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 10 07:25:44 UTC 2012 - werner@suse.de
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package xfig
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -60,6 +60,8 @@ Patch0: xfig.%{version}.dif
|
||||
Patch1: xfig.3.2.5-urw-fonts.dif
|
||||
Patch2: xfig.3.2.5-xim.dif
|
||||
Patch3: xfig.3.2.3d-international-std-fonts.dif
|
||||
# PATCH-FIX-UPSTREAM xfig.3.2.5b-mediaboxrealnb.dif [debian#530898]
|
||||
Patch4: xfig.3.2.5b-mediaboxrealnb.dif
|
||||
Patch5: xfig.3.2.5b-null.dif
|
||||
Patch6: xfig.3.2.5b-locale.dif
|
||||
Patch7: xfig.3.2.5b-fixes.dif
|
||||
@ -109,6 +111,7 @@ find -type f | xargs -r chmod a-x,go-w
|
||||
%patch1 -p0 -b .urw-fonts
|
||||
%patch2 -p0 -b .xim
|
||||
%patch3 -p1 -b .international-std-fonts
|
||||
%patch4 -p0 -b .mbox
|
||||
%patch5 -p0 -b .null
|
||||
%patch6 -p0 -b .locale
|
||||
%patch7 -p0 -b .fixes
|
||||
|
Loading…
Reference in New Issue
Block a user