diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-11 22:29:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-11 22:29:41 +0000 |
commit | 4449fae13b573b7f3ada1a43ecf947956c19f947 (patch) | |
tree | cbdcd35842255792ea94531c752b709d64853cb3 /Build/source/utils/asymptote | |
parent | ad8f7d8a553f208ff951ee7cec063e7ab7f4ceb9 (diff) |
runtime patch from jbowman
git-svn-id: svn://tug.org/texlive/trunk@61982 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote')
-rw-r--r-- | Build/source/utils/asymptote/GUI/xasyBezierInterface.py | 6 | ||||
-rw-r--r-- | Build/source/utils/asymptote/base/three_surface.asy | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/utils/asymptote/GUI/xasyBezierInterface.py b/Build/source/utils/asymptote/GUI/xasyBezierInterface.py index b10c8d4350c..d8792d421e8 100644 --- a/Build/source/utils/asymptote/GUI/xasyBezierInterface.py +++ b/Build/source/utils/asymptote/GUI/xasyBezierInterface.py @@ -74,7 +74,7 @@ class InteractiveBezierEditor(InplaceAddObj.InplaceObjProcess): continue selEpsilon = 6/self.info['magnification'] - newRect = QtCore.QRect(0, 0, 2 * selEpsilon, 2 * selEpsilon) + newRect = QtCore.QRectF(0, 0, 2 * selEpsilon, 2 * selEpsilon) x, y = self.transf * node x = int(round(x)) y = int(round(y)) @@ -92,8 +92,8 @@ class InteractiveBezierEditor(InplaceAddObj.InplaceObjProcess): selEpsilon = 6/self.info['magnification'] - newRect = QtCore.QRect(0, 0, 2 * selEpsilon, 2 * selEpsilon) - newRectb = QtCore.QRect(0, 0, 2 * selEpsilon, 2 * selEpsilon) + newRect = QtCore.QRectF(0, 0, 2 * selEpsilon, 2 * selEpsilon) + newRectb = QtCore.QRectF(0, 0, 2 * selEpsilon, 2 * selEpsilon) x, y = self.transf * nodea x2, y2 = self.transf * nodeb diff --git a/Build/source/utils/asymptote/base/three_surface.asy b/Build/source/utils/asymptote/base/three_surface.asy index d0d79de4641..95f41a61817 100644 --- a/Build/source/utils/asymptote/base/three_surface.asy +++ b/Build/source/utils/asymptote/base/three_surface.asy @@ -1512,7 +1512,7 @@ void tensorshade(transform t=identity(), frame f, patch s, } else p=s.colors(m,light); path g=t*project(s.external(),P,1); pair[] internal=t*project(s.internal(),P); - pen fillrule=m.diffuse(); + pen fillrule=fillrule(fillrule(m.diffuse())); if(inside(g,internal[0],fillrule) && inside(g,internal[1],fillrule) && inside(g,internal[2],fillrule) && inside(g,internal[3],fillrule)) { if(p[0] == p[1] && p[1] == p[2] && p[2] == p[3]) |