aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
index cdc404b028..b4ed883854 100644
--- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
+++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
@@ -793,18 +793,14 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet {
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()));
}
/**