poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1550351 - /poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFShape.java
Date Thu, 12 Dec 2013 05:29:12 GMT
Author: nick
Date: Thu Dec 12 05:29:11 2013
New Revision: 1550351

URL: http://svn.apache.org/r1550351
Log:
Don't use the degree symbol in comments, as it upsets the compiler, and causes the javadoc
tool to error. Use the word degrees instead, much safer

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFShape.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFShape.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFShape.java?rev=1550351&r1=1550350&r2=1550351&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFShape.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFShape.java Thu Dec 12 05:29:11
2013
@@ -19,14 +19,14 @@
 
 package org.apache.poi.xslf.usermodel;
 
-import org.apache.poi.util.Beta;
-import org.apache.poi.util.Internal;
-import org.apache.xmlbeans.XmlObject;
-
 import java.awt.Graphics2D;
 import java.awt.geom.AffineTransform;
 import java.awt.geom.Rectangle2D;
 
+import org.apache.poi.util.Beta;
+import org.apache.poi.util.Internal;
+import org.apache.xmlbeans.XmlObject;
+
 /**
  * Base super-class class for all shapes in PresentationML
  *
@@ -151,9 +151,10 @@ public abstract class XSLFShape {
 
             // scale to bounding box (bug #53176)
             if (quadrant == 1 || quadrant == 3) {
-                // In quadrant 1 and 3, which is basically a shape in a more or less portrait
orientation (45°-135° and 225°-315°),
-                // we need to first rotate the shape by a multiple of 90° and then resize
the bounding box  
-                // to its original bbox. After that we can rotate the shape to the exact
rotation amount.
+                // In quadrant 1 and 3, which is basically a shape in a more or less portrait
orientation 
+                // (45-135 degrees and 225-315 degrees), we need to first rotate the shape
by a multiple 
+                // of 90 degrees and then resize the bounding box to its original bbox. After
that we can 
+                // rotate the shape to the exact rotation amount.
                 // It's strange that you'll need to rotate the shape back and forth again,
but you can
                 // think of it, as if you paint the shape on a canvas. First you rotate the
canvas, which might
                 // be already (differently) scaled, so you can paint the shape in its default
orientation



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message