summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2024-06-13 15:46:31 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2024-06-14 16:32:47 +0200
commit9361385beb38d718726bfe6264fd49d940c2125c (patch)
tree6538fb23c42d7929dfd0479a3ba06392b6c02a70 /extras
parent8b7ec831bf787dab1d24d7b8fc4348e4dd37edc8 (diff)
tdf#158658 sw: text formatting: make TabOverMargin even more crazy
... to better match Word's formatting. The bugdoc has a special case where a right-aligned tab is positioned at the right margin exactly, which causes the bFull condition in SwTabPortion::PreFormat() to be true. An obvious change to replace rInf.Width() - rInf.X() with rInf.GetLineWidth() in the condition makes no difference because m_pLastTab was already reset previously; instead, pass in the last tab from Format(), which indicates that the right edge position of the previous text portion was found via that tab. Additionally, change the condition that checks for TabOverMargin to also allow equal positions, i.e., exactly at the end of the paragraph. Change-Id: I5d3b1c13eca0bffa640745d7c5f4113699f79cad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168823 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> (cherry picked from commit 69d873e1c46f3cc8c524e18ac5a307a8d32ddd0f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168871
Diffstat (limited to 'extras')
0 files changed, 0 insertions, 0 deletions