Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/dia/files: dia-0.97.2-png-crash.patch
Date: Wed, 25 Jun 2014 09:53:50
Message-Id: 20140625095346.9F1E92004E@flycatcher.gentoo.org
1 pacho 14/06/25 09:53:46
2
3 Added: dia-0.97.2-png-crash.patch
4 Log:
5 Fix crash and test failure (#508566 by Kolan Sh. and Drunkard Zhang; #458460 by flameeyes and eroen)
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
8
9 Revision Changes Path
10 1.1 app-office/dia/files/dia-0.97.2-png-crash.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/dia/files/dia-0.97.2-png-crash.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/dia/files/dia-0.97.2-png-crash.patch?rev=1.1&content-type=text/plain
14
15 Index: dia-0.97.2-png-crash.patch
16 ===================================================================
17 From 8b8ae09fcc16cc0522679099728f779e291d959c Mon Sep 17 00:00:00 2001
18 From: Hans Breuer <hans@××××××.org>
19 Date: Fri, 18 Apr 2014 13:28:45 +0200
20 Subject: Bug 728405 - back-port some bounding box calculation fixes from
21 master
22
23 ... so that the unit test works without complaints.
24
25 diff --git a/lib/boundingbox.c b/lib/boundingbox.c
26 index fd50da7..46adbfa 100644
27 --- a/lib/boundingbox.c
28 +++ b/lib/boundingbox.c
29 @@ -494,7 +494,7 @@ polybezier_bbox(const BezPoint *pts, int numpoints,
30 account with the "pointy corners" X (and PS) add when LINEJOIN_MITER mode is
31 in force. */
32
33 - if ((!start) && (!end)) { /* We have a non-extremity vertex. */
34 + if (!end) { /* only the last segment might not produce overshoot. */
35 Point vpx,vxn;
36 real co,alpha;
37
38 @@ -515,7 +515,7 @@ polybezier_bbox(const BezPoint *pts, int numpoints,
39 real overshoot;
40 Point vovs,pto;
41
42 - if (finite(alpha))
43 + if (alpha > 0.0 && alpha < M_PI)
44 overshoot = extra->middle_trans / sin(alpha/2.0);
45 else /* prependicular? */
46 overshoot = extra->middle_trans;
47 --
48 cgit v0.10.1