Skip to content

Commit

Permalink
Draft: PlaneGui: minor fix (FreeCAD#11049)
Browse files Browse the repository at this point in the history
* Draft: PlaneGui: minor fix

Related issue:
FreeCAD#5603.

* Typo
  • Loading branch information
Roy-043 committed Oct 15, 2023
1 parent af5b871 commit 8ad5c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Draft/WorkingPlane.py
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@ def _update_history(self):
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"):
Expand All @@ -1714,7 +1714,7 @@ def _update_old_plane(self):
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??
Expand Down

0 comments on commit 8ad5c6c

Please sign in to comment.