FreeCAD: master 58a6f059

Author Committer Branch Timestamp Parent
chennes chennes master 2021-03-01 03:42:46 master c7c420ca
Changeset [DRAFT] Refactor sync_snap_toolbar_button

LGTM objected to the re-use of the loop variable a in the algorithm.
Upon closer inspection, the algorithm in this function could be modified
to match the algorithm in sync_snap_statusbar_button (which does the
same thing to the statusbar that this does to the toolbar). This
eliminates the double-use. This change does not affect the functionality
of the routine.
mod - src/Mod/Draft/draftguitools/gui_snaps.py Diff File