]> source.dussan.org Git - poi.git/commit
#63264 Conditional Format rule evaluation calculates relative references incorrectly
authorGreg Woolsey <gwoolsey@apache.org>
Sat, 16 Mar 2019 00:27:13 +0000 (00:27 +0000)
committerGreg Woolsey <gwoolsey@apache.org>
Sat, 16 Mar 2019 00:27:13 +0000 (00:27 +0000)
commitfa697d6133f2fdac18860ac97abd9320be219242
treeb030604c131d15bd919fd4d5293ac086c6d458a4
parent485769cfef1c449db7ef5853571861ae108cef35
#63264 Conditional Format rule evaluation calculates relative references incorrectly

Fixing the offset calculation and passing the top-left-most region rather than the region matching the current cell fixed these cases.  I've augmented unit tests to check for them to avoid future regressions.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1855619 13f79535-47bb-0310-9956-ffa450edef68
src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java
src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
src/ooxml/testcases/org/apache/poi/ss/usermodel/ConditionalFormattingEvalTest.java