Skip to content

Commit

Permalink
Fix incorrect concat param order
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-joseph committed Oct 12, 2020
1 parent 4241c50 commit abb4787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -736,10 +736,9 @@ void fill(java.awt.Shape shape) {
tmpAT.setTransform(at);
try {
tmpAT.invert();
g2d.fill(tmpAT.createTransformedShape(shape));
} catch (NoninvertibleTransformException e) {
}

g2d.fill(tmpAT.createTransformedShape(shape));
setTransform(transform);
setClipRect(clipRect);
return;
Expand Down
Expand Up @@ -787,7 +787,7 @@ public void drawPattern(
double m[] = patternTransform.getMatrix();
Affine3D at = new Affine3D();
at.translate(phase.getX(), phase.getY());
at.concatenate(m[0], -m[1], m[4], -m[2], m[3], m[5]);
at.concatenate(m[0], m[2], m[4], m[1], m[3], m[5]);

g.setPaint(new ImagePattern(
img,
Expand Down

0 comments on commit abb4787

Please sign in to comment.