[[ Bug 12823 ]] Take segment offset into account when drawing selection
Merge pull request #901 from runrevali/bugfix-12823

[[ Bug 12823 ]] Take segment offset into account when drawing selection