From becda4a35ee863210289fc93c2e8f9cbe836773f Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Mon, 16 Jun 2008 13:39:44 +0000 Subject: [PATCH] Make the test related to bug #30978, which shows that named ranges pointing to deleted sheets is ok, more complete git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@668155 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/hssf/record/formula/Area3DPtg.java | 2 +- .../apache/poi/hssf/data/30978-deleted.xls | Bin 13824 -> 13824 bytes .../poi/hssf/usermodel/TestHSSFWorkbook.java | 65 ++++++++++++++++-- 3 files changed, 60 insertions(+), 7 deletions(-) diff --git a/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java b/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java index e8f72e9937..5dcada24a3 100644 --- a/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java @@ -276,8 +276,8 @@ public class Area3DPtg extends OperandPtg implements AreaI { } else { // Normal SheetNameFormatter.appendFormat(retval, sheetName); - retval.append( '!' ); } + retval.append( '!' ); } // Now the normal area bit diff --git a/src/testcases/org/apache/poi/hssf/data/30978-deleted.xls b/src/testcases/org/apache/poi/hssf/data/30978-deleted.xls index 1daca5bff70bd033247acbb2fbc20c856512eb09..0a2cabedce3dfb631901b16c51d152bb8db25d7d 100755 GIT binary patch delta 568 zcmY*Wze`(D6#mYAFXrB7O`^3n5o6NlA{c)~N}*9ObnDQ7(xp>_KCBSmU<*S0m8FB= zAl{*C)1lBsgmf=Xx+yN&sk9wB`VRiY}K8w&h|)$fDX*R3xW@mACbV1_#I|y7cK|| z9FPkIav!4?jtHW-;Q*f#(#Q(qbhZyWJ;oeh56!r})P0!<@sMOx|HXL5nb+#}X5#xjX9gEfzkNSFA*c1bCzrH&Pw)E^ z$|YO$U(%7?^k0x`kNnJl{H{t^2?LlYYflFcQquJ=f3Sa$=`Q|WRab(={9H9$3f@PZ LD7HRNd?~uOK3QIU delta 292 zcmZq3X~@~|h>4M5@?$0&#+=Ct%(AHD<{8Y(n1%PTG5`S^LvTiFYKdVh10Ms|~WKaePOA6>5zYes}d~z3;f-o!C8b$_IAY@{C4-{vZyp2FQ#(IbApTptJ%Dl%b9)h1Fo%;gf4J4JWsv8@%#x!=FJa< y