Fix #9485: PathInspector broken by #8459

This commit is contained in:
Christian Mesh
2023-05-05 14:28:31 -04:00
parent c5748fde7b
commit e24347b8fb

View File

@@ -28,6 +28,7 @@ import FreeCAD
import FreeCADGui
import Path
from PySide.QtCore import QT_TRANSLATE_NOOP
import PathScripts.PathUtils as PathUtils
translate = FreeCAD.Qt.translate
@@ -96,7 +97,7 @@ class GCodeEditorDialog(QtGui.QDialog):
tool = None
def __init__(self, PathObj, parent=FreeCADGui.getMainWindow()):
self.PathObj = PathObj.Path
self.PathObj = PathObj
if hasattr(PathObj, "ToolController"):
self.tool = PathObj.ToolController.Tool
else: