From eb9cf3d7cb86e4a60c01733568538f1d467fe743 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Mon, 19 Oct 2015 11:33:45 +0200 Subject: [PATCH] Fix value overwrite in map. Fix #275 --- docs/changelog.rst | 7 +++++++ pygal/__init__.py | 2 +- pygal/graph/map.py | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 9963485..bafec30 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,12 @@ Changelog ========= +2.0.8 +===== + +* Fix value overwrite in map. (#275) + + 2.0.7 ===== @@ -14,6 +20,7 @@ Changelog * Avoid x label formatting when label is a string + 2.0.5 ===== diff --git a/pygal/__init__.py b/pygal/__init__.py index 174dbba..1e9779c 100644 --- a/pygal/__init__.py +++ b/pygal/__init__.py @@ -24,7 +24,7 @@ and the maps extensions namespace module. """ -__version__ = '2.0.7' +__version__ = '2.0.8' import pkg_resources import sys diff --git a/pygal/graph/map.py b/pygal/graph/map.py index 9e21e0e..9f4a7bf 100644 --- a/pygal/graph/map.py +++ b/pygal/graph/map.py @@ -120,8 +120,8 @@ class BaseMap(Graph): node.set('class', ' '.join(cls)) alter(node, metadata) - value = self._get_value((area_code, value)) - self._tooltip_data(area, value, 0, 0, 'auto') + val = self._get_value((area_code, value)) + self._tooltip_data(area, val, 0, 0, 'auto') self.nodes['plot'].append(map)