mirror of
https://github.com/apache/poi.git
synced 2025-02-23 19:05:17 +00:00
small refactor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886495 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
49fe3ba330
commit
e47a48283b
@ -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()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user