aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-07-27 08:59:25 +0000
committerPJ Fanning <fanningpj@apache.org>2022-07-27 08:59:25 +0000
commit1ce0f77bdd4b7c230fe1a08bc35c40d09ae1488d (patch)
treef5caab781c31aea5cc674b372f45092990e7aa06 /poi
parentcee18e78b5f883c6d9de6dc363196b2e3301dad0 (diff)
downloadpoi-1ce0f77bdd4b7c230fe1a08bc35c40d09ae1488d.tar.gz
poi-1ce0f77bdd4b7c230fe1a08bc35c40d09ae1488d.zip
[bug-66176] rework text box support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903047 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java6
-rw-r--r--poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java b/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
index 2f49119033..e6403ebaa8 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
@@ -75,12 +75,12 @@ public final class WorkbookEvaluator {
/**
* whether print detailed messages about the next formula evaluation
*/
- private boolean dbgEvaluationOutputForNextEval;
+ private boolean dbgEvaluationOutputForNextEval = true;
// special logger for formula evaluation output (because of possibly very large output)
private final Logger EVAL_LOG = LogManager.getLogger("POI.FormulaEval");
// current indent level for evaluation; negative value for no output
- private int dbgEvaluationOutputIndent = -1;
+ private int dbgEvaluationOutputIndent = 1;
/**
* @param udfFinder pass {@code null} for default (AnalysisToolPak only)
@@ -376,7 +376,7 @@ public final class WorkbookEvaluator {
if (dbgEvaluationOutputForNextEval) {
// first evaluation call when ouput is desired, so iit. this evaluator instance
dbgEvaluationOutputIndent = 1;
- dbgEvaluationOutputForNextEval = false;
+ //dbgEvaluationOutputForNextEval = true;
}
if (dbgEvaluationOutputIndent > 0) {
// init. indent string to needed spaces (create as substring from very long space-only string;
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java b/poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java
index 8c390a0d33..f5d828389d 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java
@@ -74,7 +74,7 @@ class TestFormulaEval {
}
}
- @Disabled("currently causes a StackOverflowError")
+ //@Disabled("currently causes a StackOverflowError")
@Test
void testBug66152() throws IOException {
try (HSSFWorkbook wb = new HSSFWorkbook()) {