Add patch from upstream git fixing eps images embedded into

a fig file being misplaced
This commit is contained in:
Hans de Goede 2021-10-11 13:27:19 +02:00
parent b38d31af79
commit 4051658603
2 changed files with 32 additions and 2 deletions

View File

@ -0,0 +1,25 @@
From 1b09a885a8f0309bf1170ddcf07673801c79f895 Mon Sep 17 00:00:00 2001
From: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date: Tue, 28 Sep 2021 21:58:41 +0200
Subject: [PATCH] Correct a typo causing incorrect eps import, #137
---
fig2dev/dev/readeps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fig2dev/dev/readeps.c b/fig2dev/dev/readeps.c
index a7d6008..efeb33e 100644
--- a/fig2dev/dev/readeps.c
+++ b/fig2dev/dev/readeps.c
@@ -346,7 +346,7 @@ read_eps(F_pic *pic, struct xfig_stream *restrict pic_stream, int *llx,int *lly)
}
*llx = floor(rllx);
*lly = floor(rlly);
- pic->bit_size.x = (int)(rurx - rlly);
+ pic->bit_size.x = (int)(rurx - rllx);
pic->bit_size.y = (int)(rury - rlly);
break;
}
--
2.31.1

View File

@ -1,11 +1,12 @@
Name: transfig
Version: 3.2.8b
Release: 3%{?dist}
Release: 4%{?dist}
Epoch: 1
Summary: Utility for converting FIG files (made by xfig) to other formats
License: MIT
URL: https://sourceforge.net/projects/mcj/
Source0: http://downloads.sourceforge.net/mcj/fig2dev-%{version}.tar.xz
Patch1: 0001-Correct-a-typo-causing-incorrect-eps-import-137.patch
Requires: ghostscript
Requires: bc
@ -57,7 +58,11 @@ mv fig2dev.1.in.new man/fig2dev.1.in
%changelog
* Wed Sep 29 2021 Ondrej Dubaj <odubaj@redhat.com> - 1:3.2.8b-1
* Mon Oct 11 2021 Hans de Goede <hdegoede@redhat.com> - 1:3.2.8b-4
- Add patch from upstream git fixing eps images embedded into
a fig file being misplaced
* Wed Sep 29 2021 Ondrej Dubaj <odubaj@redhat.com> - 1:3.2.8b-3
- Updated to version 3.2.8b
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.2.8a-3