[[ Bug 13829 ]] Prevent segment boundary calculation from truncating lin...

...e width