diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2023-11-18 09:39:00 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2023-11-18 09:58:55 +0300 |
commit | 02af688a175993fc8169edf79bef767977b91764 (patch) | |
tree | a08abcf2e33fea2290da638dab525819d9eedd40 /contrib/python/fonttools/fontTools/misc/arrayTools.py | |
parent | 45d2a1a9ad08d7bb7ecb28ea9fae9f59c67768b7 (diff) | |
download | ydb-02af688a175993fc8169edf79bef767977b91764.tar.gz |
Update contrib/python/fonttools to 4.44.0
Diffstat (limited to 'contrib/python/fonttools/fontTools/misc/arrayTools.py')
-rw-r--r-- | contrib/python/fonttools/fontTools/misc/arrayTools.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/python/fonttools/fontTools/misc/arrayTools.py b/contrib/python/fonttools/fontTools/misc/arrayTools.py index 5fb01a838ae..ced8d87a613 100644 --- a/contrib/python/fonttools/fontTools/misc/arrayTools.py +++ b/contrib/python/fonttools/fontTools/misc/arrayTools.py @@ -47,7 +47,7 @@ def updateBounds(bounds, p, min=min, max=max): Args: bounds: A bounding rectangle expressed as a tuple - ``(xMin, yMin, xMax, yMax)``. + ``(xMin, yMin, xMax, yMax), or None``. p: A 2D tuple representing a point. min,max: functions to compute the minimum and maximum. @@ -55,6 +55,8 @@ def updateBounds(bounds, p, min=min, max=max): The updated bounding rectangle ``(xMin, yMin, xMax, yMax)``. """ (x, y) = p + if bounds is None: + return x, y, x, y xMin, yMin, xMax, yMax = bounds return min(xMin, x), min(yMin, y), max(xMax, x), max(yMax, y) |