From afa77a6189db699880cac4e4249f1f42c285ecf5 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Sun, 15 Oct 2023 14:28:02 +0200 Subject: [PATCH] Draft: PlaneGui: minor fix (#11049) * Draft: PlaneGui: minor fix Related issue: #5603. * Typo --- src/Mod/Draft/WorkingPlane.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/WorkingPlane.py b/src/Mod/Draft/WorkingPlane.py index bbe0146dc0..d84839139f 100644 --- a/src/Mod/Draft/WorkingPlane.py +++ b/src/Mod/Draft/WorkingPlane.py @@ -1702,7 +1702,7 @@ class PlaneGui(PlaneBase): self._history["idx"] = len(self._history["data_list"]) - 1 def _update_old_plane(self): - """ Update the old DraftWorkingPlane for compatiblity. + """ Update the old DraftWorkingPlane for compatibility. The tracker and snapper code currently still depend on it. """ if not hasattr(FreeCAD, "DraftWorkingPlane"): @@ -1714,7 +1714,7 @@ class PlaneGui(PlaneBase): FreeCAD.DraftWorkingPlane.weak = self.auto def _update_grid(self): - if FreeCAD.GuiUp: + if FreeCAD.GuiUp and self._view is not None: if hasattr(FreeCADGui, "Snapper"): FreeCADGui.Snapper.setGrid() FreeCADGui.Snapper.restack() # Required??