--- Matrix.java	Tue Apr 22 10:43:48 2014
+++ Matrix.java.mod	Thu May 22 09:19:37 2014
@@ -353,7 +353,8 @@
      */
     public float getXScale()
     {
-        float xScale = single[0];
+    	// MOD - see PDFBOX-2089
+        float xScale = Math.abs(single[0]);
 
         /**
          * BM: if the trm is rotated, the calculation is a little more complicated
@@ -386,7 +387,8 @@
      */
     public float getYScale()
     {
-        float yScale = single[4];
+    	// MOD - see PDFBOX-2089
+        float yScale = Math.abs(single[4]);
         if( !(single[1]==0.0f && single[3]==0.0f) )
         {
             yScale = (float)Math.sqrt(Math.pow(single[3], 2)+
