Replaced LPTODP/DPTOLP macros by calls to LPtoDP/DPtoLP (with the help