Fix for issue 46 from  dennis.cappendijk@tassinternational.com.

git-svn-id: http://osgworks.googlecode.com/svn/trunk@558 c67418bc-a6eb-11de-8ba5-91705c1537ed