Skip to content

Commit

Permalink
Fixed indexing dictionary keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampert authored and wwmayer committed Jan 5, 2019
1 parent d330988 commit cd1ebb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathToolLibraryManager.py
Expand Up @@ -328,7 +328,7 @@ def addnew(self, listname, tool, position = None):
tt = Path.Tooltable()
if position is None:
tt.addTools(tool)
newID = tt.Tools.keys()[-1]
newID = list(tt.Tools)[-1]
else:
tt.setTool(position, tool)
newID = position
Expand Down

0 comments on commit cd1ebb1

Please sign in to comment.