aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2007-12-13 13:17:49 +0000
committerNick Burch <nick@apache.org>2007-12-13 13:17:49 +0000
commita1f9da0930a1e7c84bb5a06b151f189c57284621 (patch)
tree20fec1326709371eb2b05293beb055bb46484bc4
parente4937b63b2afedd7b203f4484ea06fc2b558f254 (diff)
downloadpoi-a1f9da0930a1e7c84bb5a06b151f189c57284621.tar.gz
poi-a1f9da0930a1e7c84bb5a06b151f189c57284621.zip
Add missing setCurrentRow calls to documentation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@603916 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/documentation/content/xdocs/hssf/eval.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/documentation/content/xdocs/hssf/eval.xml b/src/documentation/content/xdocs/hssf/eval.xml
index 548df78e76..d697eb082b 100644
--- a/src/documentation/content/xdocs/hssf/eval.xml
+++ b/src/documentation/content/xdocs/hssf/eval.xml
@@ -63,6 +63,8 @@ HSSFFormulaEvaluator evaluator = new HSSFFormulaEvaluator(sheet, wb);
CellReference cellReference = new CellReference("B3");
HSSFRow row = sheet.getRow(cellReference.getRow());
HSSFCell cell = row.getCell(cellReference.getCol());
+
+evaluator.setCurrentRow(row);
HSSFFormulaEvaluator.CellValue cellValue = evaluator.evaluate(cell);
switch (cellValue.getCellType()) {
@@ -106,7 +108,7 @@ HSSFFormulaEvaluator evaluator = new HSSFFormulaEvaluator(sheet, wb);
CellReference cellReference = new CellReference("B3");
HSSFRow row = sheet.getRow(cellReference.getRow());
HSSFCell cell = row.getCell(cellReference.getCol());
-
+evaluator.setCurrentRow(row);
if (cell!=null) {
switch (<strong>evaluator.evaluateInCell</strong>(cell).getCellType()) {