parts editor crash bug

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