Legend icons do not reflect geometry transformations (#4642)