poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1771232 - in /poi/trunk/src/ooxml/java/org/apache/poi/xssf: streaming/SXSSFCell.java usermodel/XSSFHyperlink.java
Date Thu, 24 Nov 2016 21:25:43 GMT
Author: onealj
Date: Thu Nov 24 21:25:43 2016
New Revision: 1771232

URL: http://svn.apache.org/viewvc?rev=1771232&view=rev
Log:
bug 60416: prefer CellReference ref over String ref

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFHyperlink.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java?rev=1771232&r1=1771231&r2=1771232&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java Thu Nov 24 21:25:43
2016
@@ -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);

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFHyperlink.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFHyperlink.java?rev=1771232&r1=1771231&r2=1771232&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFHyperlink.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFHyperlink.java Thu Nov 24 21:25:43
2016
@@ -290,7 +290,7 @@ public class XSSFHyperlink implements Hy
         _ctHyperlink.setRef(ref);
     }
     @Internal
-    protected void setCellReference(CellReference ref) {
+    public void setCellReference(CellReference ref) {
         setCellReference(ref.formatAsString());
     }
 



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


Mime
View raw message