fix #25852 Fixed assigning the end of a range selection
Fixed range ending for lasso select.
Merge pull request #933 from BartlomiejLewandowski/25852-range-timesig

Range selection ending fix