Fix to build and run on Artix (https://aur.archlinux.org/packages/flatcam-qt6).
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user