mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
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
This commit is contained in:
parent
f7c50cfbe3
commit
91eb4861b7
@ -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;
|
||||
}
|
||||
|
||||
|
||||
BIN
test-data/integration/stress021.pptx
Normal file
BIN
test-data/integration/stress021.pptx
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user