Bug 100061

Summary: Table cells in specific Microsoft Word document not merge without changing column width
Product: LibreOffice Reporter: weml <weml>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: 79045_79045, aron.budea
Priority: medium Keywords: filter:doc
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 112700    
Attachments: Table cells are not merge

Description weml 2016-05-26 08:35:47 UTC
Created attachment 125290 [details]
Table cells are not merge

Highlighted red table cells Microsoft Word document are not merge.
When I will change the column width, cells can be merge.
Comment 1 Roman Kuznetsov 2016-05-26 10:14:10 UTC
if select all red cells, then it's will merged

change column width and merge - does not always work

repro in LO 5.1.2 and 5.2 alpha1 on Windows 7
Comment 2 QA Administrators 2017-09-01 11:16:13 UTC Comment hidden (obsolete)
Comment 3 Mike Kaganski 2018-04-21 07:50:54 UTC
Still reproducible with Version: 6.0.3.2 (x64)
Build ID: 8f48d515416608e3a835360314dac7e47fd0b821
CPU threads: 12; OS: Windows 10.0; UI render: GL; 
Locale: ru-RU (ru_RU); Calc: CL
Comment 4 Mike Kaganski 2018-04-21 13:41:30 UTC
The reason for the problem is that the red cells are already joined from initially unaligned cells. The second (hidden) cell of the first red merged cell actually has left border at 2 pts to the left compared with left border of the first cell of said merged cell. LibreOffice doesn't allow to merge unaligned cells; but in this case, the merge was performed in Word.

If one splits the cells to initial state, then one won't be able to merge them back unless one aligns the borders.

Actually I'm not sure if this should be considered a bug. We don't support non-rectangular cells, including merged; this is the case when we require strictly rectangular selection, when Word seem to be more forgiving. Maybe we could also accept some small allowance.

The place in code that rejects the merge is in SwTable::CollectBoxSelection(), specifically "if( nLeft < nMin )".
Comment 5 Mike Kaganski 2018-04-21 13:46:22 UTC
(In reply to Mike Kaganski from comment #4)
> ... 2 pts ...

Sorry: it should be 2 twips.
Comment 6 Justin L 2020-04-22 17:25:39 UTC
repro 7.0+
Comment 7 Aron Budea 2021-08-15 03:56:13 UTC
Already in 3.3.0.
Comment 8 QA Administrators 2023-08-16 03:05:43 UTC
Dear weml,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug