From 0581f4b7d530bbbfcb48cd1c6a598e891d0435a6 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Tue, 24 Nov 2015 08:54:32 +0000 Subject: [PATCH] bug 58637: replace deprecated getCellComment(row, col) usage git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716075 13f79535-47bb-0310-9956-ffa450edef68 --- src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java index 23ec7f7c59..040ccc7eed 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java @@ -1003,7 +1003,7 @@ public final class XSSFCell implements Cell { */ @Override public XSSFComment getCellComment() { - return getSheet().getCellComment(_row.getRowNum(), getColumnIndex()); + return getSheet().getCellComment(new CellAddress(this)); } /** -- 2.39.5