Bug 133946 - Text alignment not saved in a table, if cell continues on a second page
Summary: Text alignment not saved in a table, if cell continues on a second page
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 137191 (view as bug list)
Depends on:
Blocks: Writer-Tables-Alignment
  Show dependency treegraph
 
Reported: 2020-06-12 23:42 UTC by Moshpirit
Modified: 2024-01-18 05:24 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sample document (55.97 KB, application/vnd.oasis.opendocument.text)
2022-10-06 07:15 UTC, Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Moshpirit 2020-06-12 23:42:33 UTC
Description:
I asked this here: https://ask.libreoffice.org/en/question/249817/writer-how-to-avoid-this-the-text-of-the-left-cell-is-supposed-to-appear-vertically-in-the-middle-but-if-theres-a-page-break-it-appears-this-way/
For the left picture if I click the text, it goes right to its place but with all of these tables, I can't be checking everything all the time and it's an important work, so I want the PDF to look as it's supposed to. 

This doesn't happen with the right picture though

Here's a couple of screenshots (the black rectangle is a page break)

Here's a sample: [sample.odt](https://ask.libreoffice.org/upfiles/15919560978461876.odt)

    OS: GNU/Linux Manjaro 20.0.3
    DE: KDE 5.70.0 / Plasma 5.18.5
    LibreOffice 6.4.4.2 40(Build:2)

[image description](https://ask.libreoffice.org/upfiles/15919117916007376.png)

Someone told me that my tables have a "complex" structure: cells in the first column are merged as their contents are common to several rows in the other columns. All cells have content vertically centered.

In Table>Properties, we see that the tables can split across several pages (necessary because the tables span several pages) and rows can also split.

This is usually fine, but here the merged cells in the first column introduce a disturbance. When a page break cause a row split, Writer gets confused about how spread first column text. It seems to compute correctly the amount of text is the split parts of the cell but is lost when it comes to position the text: top or centered in the part before the break and seemingly full centering space in the part after the break as if the cell has not been split with the result of clipping overflow text.

Steps to Reproduce:
1. Create big tables with several rows
2. For rows that appear in several pages, make them go vertical and horizontally aligned

Actual Results:
Text isn't vertically aligned: sometimes it goes up, sometimes down and even overlapping other cells.

Expected Results:
Text isn't misaligned.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 6.4.4.2
Compilation ID: 6.4.4-1
Subprocs. CPU: 4; SO: Linux 5.6; Repres. IU: default; VCL: kf5; 
Regional Configuration: es-ES (es_ES.UTF-8); IU language: es-ES
Calc: threaded
Comment 1 Dieter 2020-06-16 11:43:28 UTC
Not sure, if I've grasped your problem:

Steps I've treid to reproduce
1. Open example from comment 0
2. Text in two cells of first column is right aligned => Click inside the text => text is center aligned.
3. Save and reopen

Result: Text is again right aligned

Does this describe your problem? => NEEDINFO
Comment 2 Moshpirit 2020-06-24 01:24:39 UTC
(In reply to Dieter from comment #1)
> Not sure, if I've grasped your problem:
> 
> Steps I've treid to reproduce
> 1. Open example from comment 0
> 2. Text in two cells of first column is right aligned => Click inside the
> text => text is center aligned.
> 3. Save and reopen
> 
> Result: Text is again right aligned
> 
> Does this describe your problem? => NEEDINFO

yes, this pretty much is the problem
Comment 3 Dieter 2020-06-24 05:35:38 UTC
(In reply to Moshpirit from comment #2)
> yes, this pretty much is the problem

=> NEW
Comment 4 Dieter 2020-10-02 06:57:29 UTC
*** Bug 137191 has been marked as a duplicate of this bug. ***
Comment 5 QA Administrators 2022-10-06 04:09:40 UTC Comment hidden (obsolete)
Comment 6 Dieter 2022-10-06 07:15:28 UTC
Created attachment 182850 [details]
sample document

Tested with

Version: 7.4.1.2 (x64) / LibreOffice Community
Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL


Steps:
1. Open attached file.
2. Text in two cells of first column is vertically right aligned, although setting is centered (table properties -> Text Flow -> Alignment)
3. Change vertical alignment to top and back to centered (that works)
4. Save and reload

Result:
Again top vertical alignment.
Comment 7 Gong Jimin 2024-01-18 05:24:51 UTC
Tested with
Version: 24.0.0.2 (x86_64) / LibreOffice Community
Build ID: b1fd3a6f0759c6f806568e15c957f97194bbec8f

The problem still exists.