changeset 7216:a3b5a890fbe1

Fix RT-36891: [Canvas] clipping can be corrupted by transform Reviewed by: kcr
author flar <James.Graham@oracle.com>
date Mon, 09 Jun 2014 13:47:58 -0700
parents 01cf6a99e67b
children bc2f5bd0feac
files modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGCanvas.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGCanvas.java	Mon Jun 09 12:30:01 2014 -0400
+++ b/modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGCanvas.java	Mon Jun 09 13:47:58 2014 -0700
@@ -246,6 +246,7 @@
             }
             if (init_type == InitType.CLEAR) {
                 g.setCompositeMode(CompositeMode.CLEAR);
+                g.setTransform(BaseTransform.IDENTITY_TRANSFORM);
                 g.fillRect(0, 0, tw, th);
                 g.setCompositeMode(CompositeMode.SRC_OVER);
             }