Fixing absence of transform reset before drawing colormap legend. Closes
#2740.