A couple weeks ago Dmitry fixed a bug to do with the canvas "popping/jumping" when panning just after using the pop-up palette to rotate.
https://bugs.kde.org/show_bug.cgi?id=391921
Someone (Piotr) mentioned that the bug was still present when the canvas rotation was reset, so I quickly piggy-backed off Dmitry's prior fix and fixed the rotation the same way (by using the canvas controller's rotation function there too).
While in that code I spent a few minutes cleaning up some unused #includes (there are probably some others in the header that could be swapped for forward declarations), whitespace inconsistencies, and other boring code style stuff. (Also, please let me know if doing this type of cleanup is more annoying than helpful!)