* thanks to KillaB * closes #6834 SVN-Revision: 20415
SVN-Revision: 20097
Based on a patch by Scott Dudley <spmsink@hotmail.com> SVN-Revision: 19746