diff options
author | Javen O'Neal <onealj@apache.org> | 2016-11-24 21:25:43 +0000 |
---|---|---|
committer | Javen O'Neal <onealj@apache.org> | 2016-11-24 21:25:43 +0000 |
commit | f656e74c4bd7d3901972b52278a620ff938ed77f (patch) | |
tree | 5df30e8afeb503133ec29438e67564188d8244ee /src | |
parent | 12b8b6c9e71d11536f15726b524f2195e0a191b2 (diff) | |
download | poi-f656e74c4bd7d3901972b52278a620ff938ed77f.tar.gz poi-f656e74c4bd7d3901972b52278a620ff938ed77f.zip |
bug 60416: prefer CellReference ref over String ref
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1771232 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java | 2 | ||||
-rw-r--r-- | src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFHyperlink.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java index c070911101..d95dca157a 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java @@ -711,7 +711,7 @@ public class SXSSFCell implements Cell { XSSFHyperlink xssfobj = (XSSFHyperlink)link; // Assign to us CellReference ref = new CellReference(getRowIndex(), getColumnIndex()); - xssfobj.setCellReference( ref.formatAsString() ); + xssfobj.setCellReference( ref ); // Add to the lists getSheet()._sh.addHyperlink(xssfobj); diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFHyperlink.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFHyperlink.java index 9d26a6658b..401f33cc7f 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFHyperlink.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFHyperlink.java @@ -290,7 +290,7 @@ public class XSSFHyperlink implements Hyperlink { _ctHyperlink.setRef(ref); } @Internal - protected void setCellReference(CellReference ref) { + public void setCellReference(CellReference ref) { setCellReference(ref.formatAsString()); } |