summaryrefslogtreecommitdiff
path: root/jvmfwk/qa/unit
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2024-06-07 09:14:21 +0200
committerMiklos Vajna <vmiklos@collabora.com>2024-06-07 10:20:05 +0200
commit39c54c0ef837e0e23a676a4d1fa5da667e18939c (patch)
tree19591b99e1878682c4bace2b894f544ab6263389 /jvmfwk/qa/unit
parenteb8898579f828ea7f73c09614fca1fcfb1c427f8 (diff)
tdf#161443 DOCX import, table style: fix para border leaking into cell border
Open the document with a single table, notice that start of the text in A1 cell is missing. Seems what happens is that the cell has some positive border distance, then the para has the same negative left margin, so in total there is 0 left margin for the text, which makes this readable in Word. On our side, we map the paragraph border from the table style to the LeftBorderDistance property, then throw this on the cell object, which gives us 0 border distance, so the negative para left margin results in an unwanted shift of text towards the left: the start of the text is hidden by clipping to make sure the painted text is inside the cell frame. (Both paragraphs and cells have a LeftBorderDistance property, by accident.) Given that a visible paragraph border from table style is not actually imported, first just do the minimal fix and make sure we don't import paragraph borders from table style at all: this solves the problem of unwanted 0 cell border distances and the full text is now readable. In case the paragraph border in the table style would be actually visible, that would be useful to route to the paragraphs in the cell, that's not yet done here. Change-Id: I79907a2487c48659effcc55253b9d9881550284d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168516 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'jvmfwk/qa/unit')
0 files changed, 0 insertions, 0 deletions