merging with code by Steffi Benthin
Authored by: berndspeiser 2012-04-10
Parent: [r1080]
Child: [r1082]