I recently upgraded to the newest version of Lightroom and one of the new features is its ability to correct wide-angle distortion. It does an incredible job of automatically straightening lines. Take a look at the photo below. This was from a photo of a cathedral in Rome I took and processed early in 2012. I decided to put the new Lightroom through the paces and see how it would work on this photo. It really is an amazing difference. I did lose some of the photo on each side but it really makes the photo look much better. More importantly it was very easy; just push the Auto button and the magic happens. One more note, I did reprocess the above photo from scratch by combining 3 photos in 2 stop increments to capture the vast dynamic range and also using the distortion correction.