From b57f30921bc13a8d59ae9a2c8fb3a1c010b86bbc Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 20 Mar 2008 10:16:15 +0000 Subject: [PATCH] Simple patch from Josh from bug #44636 - fix for RefVPtg and edit-in-excel oddness git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@639232 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/changes.xml | 1 + src/documentation/content/xdocs/status.xml | 1 + src/java/org/apache/poi/hssf/record/formula/RefVPtg.java | 1 + 3 files changed, 3 insertions(+) diff --git a/src/documentation/content/xdocs/changes.xml b/src/documentation/content/xdocs/changes.xml index 0f5b74ef2..9d335d766 100644 --- a/src/documentation/content/xdocs/changes.xml +++ b/src/documentation/content/xdocs/changes.xml @@ -36,6 +36,7 @@ + 44636 - Fix formula parsing of RefVPtg, which was causing #VALUE to be shown on subsequent edits 44627 - Improve the thread safety of POILogFactory 30311 - Initial support for Conditional Formatting 44609 - Handle leading spaces in formulas, such as '= 4' diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index 5884c0df4..d29d57ff8 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -33,6 +33,7 @@ + 44636 - Fix formula parsing of RefVPtg, which was causing #VALUE to be shown on subsequent edits 44627 - Improve the thread safety of POILogFactory 30311 - Initial support for Conditional Formatting 44609 - Handle leading spaces in formulas, such as '= 4' diff --git a/src/java/org/apache/poi/hssf/record/formula/RefVPtg.java b/src/java/org/apache/poi/hssf/record/formula/RefVPtg.java index 8a6b2c03b..75c634890 100644 --- a/src/java/org/apache/poi/hssf/record/formula/RefVPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/RefVPtg.java @@ -32,6 +32,7 @@ public final class RefVPtg extends ReferencePtg { public RefVPtg(int row, int column, boolean isRowRelative, boolean isColumnRelative) { super(row, column, isRowRelative, isColumnRelative); + setClass(CLASS_VALUE); }