fix bug created by robin reported by Djan; version-->3.5.40
authorrobin
Fri, 28 Feb 2020 12:50:20 +0000
changeset 4578 325c308a1c36
parent 4577 0ee00d55c105
child 4579 e2a0a54bfb87
fix bug created by robin reported by Djan; version-->3.5.40
CHANGES.md
src/reportlab/__init__.py
src/reportlab/graphics/charts/barcharts.py
--- a/CHANGES.md	Wed Feb 26 14:53:45 2020 +0000
+++ b/CHANGES.md	Fri Feb 28 12:50:20 2020 +0000
@@ -11,6 +11,10 @@
 The contributors lists are in no order and apologies to those accidentally not
 mentioned. If we missed you, please let us know!
 
+RELEASE 3.5.40	28/02/2020
+--------------------------
+	* fix broken (by robin) simple bar lables found by Djan
+
 RELEASE 3.5.39	26/02/2020
 --------------------------
 	* allow selection of ttf subfonts by PS name
--- a/src/reportlab/__init__.py	Wed Feb 26 14:53:45 2020 +0000
+++ b/src/reportlab/__init__.py	Fri Feb 28 12:50:20 2020 +0000
@@ -1,9 +1,9 @@
 #Copyright ReportLab Europe Ltd. 2000-2018
 #see license.txt for license details
 __doc__="""The Reportlab PDF generation library."""
-Version = "3.5.39"
+Version = "3.5.40"
 __version__=Version
-__date__='20200226'
+__date__='20200228'
 
 import sys, os
 
--- a/src/reportlab/graphics/charts/barcharts.py	Wed Feb 26 14:53:45 2020 +0000
+++ b/src/reportlab/graphics/charts/barcharts.py	Fri Feb 28 12:50:20 2020 +0000
@@ -815,7 +815,7 @@
         BP = self._barPositions
         for rowNo, row in enumerate(BP):
             C = [].append
-            for colNox, (y, width, height) in enumerate(row):
+            for colNo, (x, y, width, height) in enumerate(row):
                 if None in (width,height):
                     na = self.naLabel
                     if na and na.text:
@@ -2357,3 +2357,4 @@
         bc.categoryAxis.categoryNames = ['Ying', 'Yang']
 
         self.add(bc,name='HBC')
+        bc._computeSimpleBarLabelPositions()