- fixed crash when launching with 2D Graphic Engine (due of recent changes)

- in Geometry Editor - added new feature: Zoom on selected (by selecting a geometry element in the Geometry Table)
This commit is contained in:
Marius Stanciu
2020-11-27 14:16:26 +02:00
committed by Marius
parent be84e2b18d
commit 675d7455d4
4 changed files with 95 additions and 34 deletions

View File

@@ -734,7 +734,7 @@ class PlotCanvasLegacy(QtCore.QObject):
"""
self.clear()
def adjust_axes(self, xmin, ymin, xmax, ymax):
def adjust_axes(self, xmin=None, ymin=None, xmax=None, ymax=None):
"""
Adjusts all axes while maintaining the use of the whole canvas
and an aspect ratio to 1:1 between x and y axes. The parameters are an original
@@ -753,7 +753,7 @@ class PlotCanvasLegacy(QtCore.QObject):
# FlatCAMApp.App.log.debug("PC.adjust_axes()")
if not self.app.collection.get_list():
if not self.app.collection.get_list() and not xmin and not ymin and not xmax and not ymax:
xmin = -10
ymin = -10
xmax = 100