fix #20508: Clefs and key sigs drawn wrongly in palettes