From 3ba7b4b1229fd5468f0e18d93f88d6b082b7d210 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 13 Aug 2021 21:40:26 +0000 Subject: [PATCH] slightly more impl in XSSFDataBarFormatting git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892319 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/xssf/usermodel/XSSFDataBarFormatting.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFDataBarFormatting.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFDataBarFormatting.java index fecd4f0221..b58fc5b147 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFDataBarFormatting.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFDataBarFormatting.java @@ -52,17 +52,17 @@ public class XSSFDataBarFormatting implements DataBarFormatting { } public int getWidthMin() { - return 0; + return (int)_databar.getMinLength(); } public void setWidthMin(int width) { - // TODO How does XSSF encode this? + _databar.setMinLength(width); } public int getWidthMax() { - return 100; + return (int)_databar.getMaxLength(); } public void setWidthMax(int width) { - // TODO How does XSSF encode this? + _databar.setMaxLength(width); } public XSSFColor getColor() { -- 2.39.5