# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: Type1ShadingContext.java
--- Type1ShadingContext.java Base (BASE)
+++ Type1ShadingContext.java Locally Modified (Based On LOCAL)
@@ -121,9 +121,11 @@
 
         try
         {
-            // get inverse transform to be independent of current user / device space 
+            // get inverse transform to be independent of 
+            // shading matrix and current user / device space 
             // when handling actual pixels in getRaster()
             rat = matrix.createAffineTransform().createInverse();
+            rat.concatenate(currentTransformationMatrix.createAffineTransform().createInverse());
             rat.concatenate(xform.createInverse());
         }
         catch (NoninvertibleTransformException ex)
