diff options
author | Evgeniy Berlog <berlog@apache.org> | 2012-09-09 13:21:38 +0000 |
---|---|---|
committer | Evgeniy Berlog <berlog@apache.org> | 2012-09-09 13:21:38 +0000 |
commit | a0ad9be37d61f5c11fe0bb49e824dfdd8127e4ed (patch) | |
tree | 2ee602699b92ae8af2f2a5fd06ab6df0ceb9d9d2 /src/testcases | |
parent | 8a8bf7d3933c9431a255addf9ab46d8bab018338 (diff) | |
download | poi-a0ad9be37d61f5c11fe0bb49e824dfdd8127e4ed.tar.gz poi-a0ad9be37d61f5c11fe0bb49e824dfdd8127e4ed.zip |
fixed bug 46250
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1382494 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 9c566b05b1..8f4a4ec652 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -2283,4 +2283,18 @@ if(1==2) { wb = writeOutAndReadBack((HSSFWorkbook) wb); assertEquals(wb.getAllPictures().size(), 1); } + + public void test46250(){ + Workbook wb = openSample("46250.xls"); + Sheet sh = wb.getSheet("Template"); + Sheet cSh = wb.cloneSheet(wb.getSheetIndex(sh)); + + HSSFPatriarch patriarch = (HSSFPatriarch) cSh.createDrawingPatriarch(); + HSSFTextbox tb = (HSSFTextbox) patriarch.getChildren().get(2); + + tb.setString(new HSSFRichTextString("POI test")); + tb.setAnchor(new HSSFClientAnchor(0,0,0,0,(short)0,0,(short)10,10)); + + wb = writeOutAndReadBack((HSSFWorkbook) wb); + } } |