Same bug fix as in r5412 but for tensor_pdb().
Authored by: bugman 2008-04-08
Parent: [r5413]
Child: [r5415]