Author: kiwiwings Date: Wed Dec 30 23:13:23 2020 New Revision: 1884966 URL: http://svn.apache.org/viewvc?rev=1884966&view=rev Log: workaround "Width (0) and height (0) cannot be <= 0" error while rendering text with textures
Added: poi/trunk/test-data/integration/stress021.pptx (with props) Modified: poi/trunk/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java Modified: poi/trunk/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java?rev=1884966&r1=1884965&r2=1884966&view=diff ============================================================================== --- poi/trunk/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java (original) +++ poi/trunk/src/java/org/apache/poi/sl/draw/DrawTexturePaint.java Wed Dec 30 23:13:23 2020 @@ -102,7 +102,7 @@ import org.apache.poi.util.Dimension2DDo final Insets2D insets = fill.getInsets(); final Insets2D stretch = fill.getStretch(); - if ((insets == null || INSETS_EMPTY.equals(insets)) && (stretch == null)) { + if ((insets == null || INSETS_EMPTY.equals(insets)) && (stretch == null) || userBounds == null || userBounds.isEmpty()) { return bi; } Added: poi/trunk/test-data/integration/stress021.pptx URL: http://svn.apache.org/viewvc/poi/trunk/test-data/integration/stress021.pptx?rev=1884966&view=auto ============================================================================== Binary file - no diff available. Propchange: poi/trunk/test-data/integration/stress021.pptx ------------------------------------------------------------------------------ --- svn:mime-type (added) +++ svn:mime-type Wed Dec 30 23:13:23 2020 @@ -0,0 +1 @@ +application/vnd.openxmlformats-officedocument.presentationml.presentation --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@poi.apache.org For additional commands, e-mail: commits-h...@poi.apache.org