浏览代码

workaround "Width (0) and height (0) cannot be <= 0" error while rendering text with textures

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884966 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_0_0
Andreas Beeker 3 年前
父节点
当前提交
91eb4861b7
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/java/org/apache/poi/sl/draw/DrawTexturePaint.java
  2. 二进制
      test-data/integration/stress021.pptx

+ 1
- 1
src/java/org/apache/poi/sl/draw/DrawTexturePaint.java 查看文件

@@ -102,7 +102,7 @@ import org.apache.poi.util.Dimension2DDouble;
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;
}


二进制
test-data/integration/stress021.pptx 查看文件


正在加载...
取消
保存