The rule tool allows to correct the angle of a pic by adjusting a line on the horizon or on a vertical wall in the pic.
Clic on the pic for a larger size
A faster method to use the rule is :