diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-10-05 10:31:26 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-10-05 13:28:20 +0200 |
commit | cb2f30897ca5d9ced5b4a4d801af6f0a22c98cc0 (patch) | |
tree | 7d36228b2635acfe774500d885011c7c233f5c0b /svl | |
parent | c26e13307fae1be23ab7e019ab7d82bacad04155 (diff) |
Related: tdf#120287 sw layout, TabOverMargin: fix too wide tab portion
What happened is:
- the paragraph was split into two lines, at the correct position
- but then the first line checked how wide the tab portion can be, and
there it concluded that it has a lot of space, so the tab portion was
1418 twips wide, instead of the expected "almost zero" 69
The root of the problem was that first the text break was determined
using the TabOverMargin rules (more horizontal space), but later a check
validated the result ignoring the TabOverMargin flag (less horizontal
space). Fix this inconsistency by using GetLineWidth() in
SwTextPortion::Format_() instead of manual calculation.
Change-Id: Iaa7144341dfeaa8d177716dd87165598f11fd573
Reviewed-on: https://gerrit.libreoffice.org/61403
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'svl')
0 files changed, 0 insertions, 0 deletions