- fixed crash when trying to set a workspace in FlatCAM in the Legacy engine 2D mode by disabling this function for the case of 2D mode

- updated the translation files
This commit is contained in:
Marius Stanciu
2019-09-23 00:17:45 +03:00
committed by Marius
parent fbf5aa9b15
commit e349953637
3 changed files with 22 additions and 17 deletions

View File

@@ -329,6 +329,12 @@ class PlotCanvasLegacy(QtCore.QObject):
# FlatCAMApp.App.log.debug("PC.adjust_axes()")
if not self.app.collection.get_list():
xmin = -10
ymin = -10
xmax = 100
ymax = 100
width = xmax - xmin
height = ymax - ymin
try:
@@ -588,7 +594,7 @@ class PlotCanvasLegacy(QtCore.QObject):
:param position: Mouse event position
:return: Tuple with mouse position
"""
return (position[0], position[1])
return position[0], position[1]
def on_draw(self, renderer):