OrientRectangle

OrientRectangle function

function OrientRectangle(Const R: TRect): TRect;

Unit
TeCanvas

Description
Returns the passed R rectangle after correcting Left <= Right and Top <= Bottom.

Swaps Left and Right if Left is bigger than Right.
Swaps Top and Bottom if Top is bigger than Bottom.