aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ss
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2011-05-21 10:31:59 +0000
committerYegor Kozlov <yegor@apache.org>2011-05-21 10:31:59 +0000
commit07b2ce9a3157d9a8eb22e413e67224ee6875610c (patch)
tree718fe0d44eaa44ca7f57360228c318b16b60e3c5 /src/java/org/apache/poi/ss
parent668f479cf61ebfcd74f88f3cc467e9c9ee41623a (diff)
downloadpoi-07b2ce9a3157d9a8eb22e413e67224ee6875610c.tar.gz
poi-07b2ce9a3157d9a8eb22e413e67224ee6875610c.zip
Bug 51196: more progress with chart api
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1125662 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/ss')
-rw-r--r--src/java/org/apache/poi/ss/util/CellRangeAddress.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/ss/util/CellRangeAddress.java b/src/java/org/apache/poi/ss/util/CellRangeAddress.java
index 4a7ec73155..4a44a6c8a5 100644
--- a/src/java/org/apache/poi/ss/util/CellRangeAddress.java
+++ b/src/java/org/apache/poi/ss/util/CellRangeAddress.java
@@ -17,6 +17,7 @@
package org.apache.poi.ss.util;
+import org.apache.poi.ss.formula.SheetNameFormatter;
import org.apache.poi.hssf.record.RecordInputStream;
import org.apache.poi.hssf.record.SelectionRecord;
import org.apache.poi.util.LittleEndianByteArrayOutputStream;
@@ -89,7 +90,7 @@ public class CellRangeAddress extends CellRangeAddressBase {
public String formatAsString(String sheetName, boolean useAbsoluteAddress) {
StringBuffer sb = new StringBuffer();
if (sheetName != null) {
- sb.append(sheetName);
+ sb.append(SheetNameFormatter.format(sheetName));
sb.append("!");
}
CellReference cellRefFrom = new CellReference(getFirstRow(), getFirstColumn(),