git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861958 13f79535-47bb-0310-9956-ffa450edef68pull/158/head
@@ -237,6 +237,9 @@ public class DrawPaint { | |||
assert(graphics != null); | |||
final String contentType = fill.getContentType(); | |||
if (contentType == null || contentType.isEmpty()) { | |||
return TRANSPARENT; | |||
} | |||
ImageRenderer renderer = DrawPictureShape.getImageRenderer(graphics, contentType); | |||
@@ -428,6 +428,9 @@ public abstract class XSLFShape implements Shape<XSLFShape,XSLFTextParagraph> { | |||
@Override | |||
public String getContentType() { | |||
if (blip == null || !blip.isSetEmbed() || blip.getEmbed().isEmpty()) { | |||
return null; | |||
} | |||
/* TOOD: map content-type */ | |||
return getPart().getContentType(); | |||
} |