]> source.dussan.org Git - poi.git/commitdiff
Fix inconsistent logging statement
authorMarius Volkhart <mariusvolkhart@apache.org>
Mon, 1 Feb 2021 01:02:26 +0000 (01:02 +0000)
committerMarius Volkhart <mariusvolkhart@apache.org>
Mon, 1 Feb 2021 01:02:26 +0000 (01:02 +0000)
The conditions check for max, but the logging was copy/pasted and still uses the minimum.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886089 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/record/cf/DataBarFormatting.java

index b6c286fa6b0107d7cb37ecfbea5e36570cd2e86d..7dd3fa0ffb13f308d080db5de5e868ad5335b2e1 100644 (file)
@@ -73,7 +73,7 @@ public final class DataBarFormatting implements Duplicatable, GenericRecord {
         if (percentMin < 0 || percentMin > 100)
             LOG.log(POILogger.WARN, "Inconsistent Minimum Percentage found " + percentMin);
         if (percentMax < 0 || percentMax > 100)
-            LOG.log(POILogger.WARN, "Inconsistent Minimum Percentage found " + percentMin);
+            LOG.log(POILogger.WARN, "Inconsistent Maximum Percentage found " + percentMax);
 
         color = new ExtendedColor(in);
         thresholdMin = new DataBarThreshold(in);