SVY-7565 after second resize selection is painted wrong