fix FS#1140 - Auto trim: not working on rays, xlines