fix #19920: crash when opening lines palette