simplified getPaint()

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2427 eee81c28-f429-11dd-99c0-75d572ba1ddd
fixed missing semicolons and leaking ret var

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2428 eee81c28-f429-11dd-99c0-75d572ba1ddd