Path: typo fixes

Forum thread: https://forum.freecadweb.org/viewtopic.php?f=15&t=25384
+ I squeezed in a few more changes. @mlampert & @sliptonic do you mind reviewing?
This commit is contained in:
luzpaz
2017-11-18 04:50:38 -05:00
committed by wmayer
parent 6f1691fec9
commit 1f76beba61
4 changed files with 9 additions and 9 deletions

View File

@@ -143,13 +143,13 @@ class GCodeEditorDialog(QtGui.QDialog):
layout.addWidget(self.buttons)
self.buttons.accepted.connect(self.accept)
self.buttons.rejected.connect(self.reject)
self.editor.selectionChanged.connect(self.hightlightpath)
self.editor.selectionChanged.connect(self.highlightpath)
self.finished.connect(self.cleanup)
def cleanup(self):
FreeCAD.ActiveDocument.removeObject(self.selectionobj.Name)
def hightlightpath(self):
def highlightpath(self):
cursor = self.editor.textCursor()
sp = cursor.selectionStart()
ep = cursor.selectionEnd()