Fixed Diagram format method parameters being ignored.

The Diagram format method parameters paddingr, paddingb, paddingl were either ignored or misassigned. It usually went unnoticed as padding values are often the same.