diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2016-10-22 19:34:47 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2016-10-22 19:34:47 +0000 |
commit | 49572b2ac87eccf4ce3f80d21c11fed67e63d198 (patch) | |
tree | 1983fb3a02daa8f34b795ae89fc394b75e1fd3ca /src/scratchpad | |
parent | 8b69cfda0691f99a90321d63bac8709856af528e (diff) | |
download | poi-49572b2ac87eccf4ce3f80d21c11fed67e63d198.tar.gz poi-49572b2ac87eccf4ce3f80d21c11fed67e63d198.zip |
Bug 60294 - Add "unknown" ShapeType for 4095
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1766227 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad')
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java index 720719271c..0cabd81a6d 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java @@ -75,6 +75,7 @@ import org.apache.poi.sl.usermodel.PaintStyle; import org.apache.poi.sl.usermodel.PaintStyle.SolidPaint; import org.apache.poi.sl.usermodel.PictureData.PictureType; import org.apache.poi.sl.usermodel.Placeholder; +import org.apache.poi.sl.usermodel.ShapeType; import org.apache.poi.sl.usermodel.Slide; import org.apache.poi.sl.usermodel.SlideShow; import org.apache.poi.sl.usermodel.SlideShowFactory; @@ -1008,4 +1009,15 @@ public final class TestBugs { } return null; } + + /** + * Bug 60294: Add "unknown" ShapeType for 4095 + */ + @Test + public void bug60294() throws IOException { + HSLFSlideShow ppt = open("60294.ppt"); + List<HSLFShape> shList = ppt.getSlides().get(0).getShapes(); + assertEquals(ShapeType.NOT_PRIMITIVE, ((HSLFAutoShape)shList.get(2)).getShapeType()); + ppt.close(); + } } |