This commit is contained in:
Artix
2025-03-04 12:12:06 +02:00
parent 08f8ca60a8
commit 859ef325eb
16 changed files with 93 additions and 93 deletions

View File

@@ -120,10 +120,10 @@ class DrawTool(object):
def bounds(obj):
def bounds_rec(o):
if type(o) is list:
minx = np.Inf
miny = np.Inf
maxx = -np.Inf
maxy = -np.Inf
minx = np.inf
miny = np.inf
maxx = -np.inf
maxy = -np.inf
for k in o:
try:

View File

@@ -583,10 +583,10 @@ class TransformEditorTool(AppToolEditor):
"""
def bounds_rec(lst):
minx = np.Inf
miny = np.Inf
maxx = -np.Inf
maxy = -np.Inf
minx = np.inf
miny = np.inf
maxx = -np.inf
maxy = -np.inf
try:
for shp in lst: