diff --git a/src/Mod/Path/Path/Main/Gui/Inspect.py b/src/Mod/Path/Path/Main/Gui/Inspect.py index fe4967ba03..5074c7807a 100644 --- a/src/Mod/Path/Path/Main/Gui/Inspect.py +++ b/src/Mod/Path/Path/Main/Gui/Inspect.py @@ -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: