Reverted r8198 and added the real fix for the centre() function.
Authored by: bugman 2008-12-11
Parent: [r8198]
Child: [r8200]