Bug 99349 - FILEOPEN: table pushed to next page, caused by paragraphs with "Keep with Next' property set (specific file / WPS)
Summary: FILEOPEN: table pushed to next page, caused by paragraphs with "Keep with Nex...
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx, filter:ooxml
Depends on:
Blocks: DOCX-Tables
  Show dependency treegraph
 
Reported: 2016-04-16 15:15 UTC by Vladimir Potapov
Modified: 2017-08-15 09:44 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sberbank file (404.52 KB, application/wps-office.docx)
2016-04-16 15:15 UTC, Vladimir Potapov
Details
Correct layout in MS Word 2010 (198.19 KB, image/png)
2016-04-16 15:16 UTC, Vladimir Potapov
Details
isk_short.docx: simplified version of the description's test document (44.01 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-08-14 23:56 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Potapov 2016-04-16 15:15:05 UTC
Created attachment 124404 [details]
Sberbank file

The standard Sberbank (Russia's largest bank) document incorrect open in LO Write
Comment 1 Vladimir Potapov 2016-04-16 15:16:20 UTC
Created attachment 124405 [details]
Correct layout in MS Word 2010
Comment 2 Carlos Roberto 2016-04-16 15:59:46 UTC
Reproducible on Windows 10 64-bits with:

BrOffice 3.3.4 
OOO330m19 (Build:401)
tag libreoffice-3.3.4.1

Versão: 5.1.2.2
ID de compilação: d3bf12ecb743fc0d20e0be0c58ca359301eb705f
Threads da CPU:4; Versão do SO: Windows 6.2; Realizador da interface: padrão; 
Local: pt-BR (pt_BR)

Maybe duplicate of an existing one?
Comment 3 Mikhail Novosyolov 2016-04-20 16:23:45 UTC
Confirm the issue on LibreOffice 5.1.2.2
Comment 4 Mikhail Novosyolov 2016-04-20 16:25:07 UTC
Wps Office opens this file a bit incorrectly, but OnlyOffice Desktop Editors seems to open it fully correctly.
File also sent to WPS Office developers.

Maybe this information will be somehow useful.
Comment 5 Cor Nouws 2016-12-06 20:37:36 UTC
(In reply to Mikhail Novosyolov from comment #4)
> Wps Office opens this file a bit incorrectly, but OnlyOffice Desktop Editors
> seems to open it fully correctly.
> File also sent to WPS Office developers.
> 
> Maybe this information will be somehow useful.

Not really, sorry. But thanks for reporting of course.
Comment 6 Mikhail Novosyolov 2017-07-31 08:51:15 UTC
Still remains in Libreoffice 5.4
Comment 7 Cor Nouws 2017-08-11 12:09:19 UTC
Hi Justin,
Maybe of interest for you.
In the first table in attachment 124405 [details] (from comment #1)
first row, turn of paragraph setting "Keep with next .." and the row moves to the first page. Same for following rows..
Comment 8 Cor Nouws 2017-08-11 12:09:51 UTC
@justin: see comment 7
Comment 9 Justin L 2017-08-14 23:56:48 UTC
Created attachment 135552 [details]
isk_short.docx: simplified version of the description's test document

I was unable to create a cleanroom sample - I could only simplify the provided example.

I think this has more to do with section breaks than anything else. It looks like the "paragraph before the table"'s keep with next property isn't connecting to the table because of the section break, and thus the table floats freely. A bRemove in DomainMapper.cxx::lcl_utext seems to be causing the import problem. Don't remove if pContext->isSet(PROP_PARA_KEEP_TOGETHER)? But then you get extra empty paragraphs each round-trip.

This simple file also exports poorly - even to .doc and .odt format. I'm not going to look into this further - too ugly.
Comment 10 Cor Nouws 2017-08-15 09:44:03 UTC
If Justin, who does a lot of good work on interoperability cases, says it's too ugly and he's not going to look further at it, I think we can best close as WontFix.
Of course anyone is free to assign the task to him/herself and reopen.