Fix a potential divide by zero bug that caused the app to crash in OS X Mavericks.
Merge branch 'master' of github.com:mikepj/XRG