Yes, the setRotation() was still inside the paint path.
In general I would consider paint() and similar methods to be "const", even if their method signatures are not.
The only thing these would probably change are cached drawings or values determined through drawing needed elsewhere.
Cheers,
_
Bookmarks