You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2021/02/13 23:33:24 UTC

svn commit: r1886495 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java

Author: fanningpj
Date: Sat Feb 13 23:33:24 2021
New Revision: 1886495

URL: http://svn.apache.org/viewvc?rev=1886495&view=rev
Log:
small refactor

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java?rev=1886495&r1=1886494&r2=1886495&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java Sat Feb 13 23:33:24 2021
@@ -793,18 +793,14 @@ public class XSSFSheet extends POIXMLDoc
             return null;
         }
 
-        final int row = address.getRow();
-        final int column = address.getColumn();
-
-        CellAddress ref = new CellAddress(row, column);
-        CTComment ctComment = sheetComments.getCTComment(ref);
+        CTComment ctComment = sheetComments.getCTComment(address);
         if(ctComment == null) {
             return null;
         }
 
         XSSFVMLDrawing vml = getVMLDrawing(false);
         return new XSSFComment(sheetComments, ctComment,
-                vml == null ? null : vml.findCommentShape(row, column));
+                vml == null ? null : vml.findCommentShape(address.getRow(), address.getColumn()));
     }
 
     /**



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