bug calculating which end of the leg is connected to the part body

git-svn-id: http://fritzing.googlecode.com/svn/trunk@6988 85f94c43-f63a-0410-9d22-21439860c375