aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorVladislav Galas <gallon@apache.org>2019-01-02 22:08:38 +0000
committerVladislav Galas <gallon@apache.org>2019-01-02 22:08:38 +0000
commite501d4015df167e69688635df8092f993d5a9094 (patch)
tree31a3f35cc2b0c94192be7072f53a97f83d2cc7d0 /src/java/org
parent3aec436a34da31b247a1449225c75f3157a1bf63 (diff)
downloadpoi-e501d4015df167e69688635df8092f993d5a9094.tar.gz
poi-e501d4015df167e69688635df8092f993d5a9094.zip
Bug 62828: CellReference(Cell) now initializes sheet name.
Changed CellReference to CellAddress in XSSFHyperlink because it is what it should return. Updated all relevant tests, added a test for CellReference(Cell). git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1850210 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/poi/ss/util/CellReference.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/ss/util/CellReference.java b/src/java/org/apache/poi/ss/util/CellReference.java
index 3ef32e30f6..be2737a1c1 100644
--- a/src/java/org/apache/poi/ss/util/CellReference.java
+++ b/src/java/org/apache/poi/ss/util/CellReference.java
@@ -145,7 +145,7 @@ public class CellReference {
}
public CellReference(Cell cell) {
- this(cell.getRowIndex(), cell.getColumnIndex(), false, false);
+ this(cell.getSheet().getSheetName(), cell.getRowIndex(), cell.getColumnIndex(), false, false);
}
public CellReference(int pRow, int pCol, boolean pAbsRow, boolean pAbsCol) {