From fc520624844cad0e38160a4ce9502f0a8bd71749 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 13 Dec 2007 13:17:49 +0000 Subject: [PATCH] Add missing setCurrentRow calls to documentation git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@603916 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/hssf/eval.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/documentation/content/xdocs/hssf/eval.xml b/src/documentation/content/xdocs/hssf/eval.xml index 548df78e7..d697eb082 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 (evaluator.evaluateInCell(cell).getCellType()) {