• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

修訂8b8ae09fcc16cc0522679099728f779e291d959c (tree)
時間2014-04-18 20:28:45
作者Hans Breuer <hans@breu...>
CommiterHans Breuer

Log Message

Bug 728405 - back-port some bounding box calculation fixes from master

... so that the unit test works without complaints.

Change Summary

差異

--- a/lib/boundingbox.c
+++ b/lib/boundingbox.c
@@ -494,7 +494,7 @@ polybezier_bbox(const BezPoint *pts, int numpoints,
494494 account with the "pointy corners" X (and PS) add when LINEJOIN_MITER mode is
495495 in force. */
496496
497- if ((!start) && (!end)) { /* We have a non-extremity vertex. */
497+ if (!end) { /* only the last segment might not produce overshoot. */
498498 Point vpx,vxn;
499499 real co,alpha;
500500
@@ -515,7 +515,7 @@ polybezier_bbox(const BezPoint *pts, int numpoints,
515515 real overshoot;
516516 Point vovs,pto;
517517
518- if (finite(alpha))
518+ if (alpha > 0.0 && alpha < M_PI)
519519 overshoot = extra->middle_trans / sin(alpha/2.0);
520520 else /* prependicular? */
521521 overshoot = extra->middle_trans;