From 915d1a216e6877f9b15477640ec215ff865f945f Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 1 Sep 2020 21:04:24 +0000 Subject: [PATCH] =?utf8?q?[github-192]=20Fix=20DOUGHNUT=20chart=20creation?= =?utf8?q?.=20Thanks=20to=20Tom=C3=A1s=20Cerd=C3=A1.=20This=20closes=20#19?= =?utf8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881380 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java b/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java index f5cc461cc3..88592c0843 100644 --- a/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java +++ b/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java @@ -650,7 +650,7 @@ public abstract class XDDFChart extends POIXMLDocumentPart implements TextContai Map categories = null; Map mapValues = null; - if (ChartTypes.PIE != type && ChartTypes.PIE3D != type) { + if (ChartTypes.PIE != type && ChartTypes.PIE3D != type && ChartTypes.DOUGHNUT != type) { categories = Collections.singletonMap(category.getId(), category); mapValues = Collections.singletonMap(values.getId(), values); } -- 2.39.5