Created attachment 144783 [details]
The tables in the attached DOCX went between Word and Writer back and forth, that's why they are both in frames.
In Writer the first table isn't shown.
The likely cause appears to be the following piece of XML in word\document.xml:
If the supposedly invisble content is removed from the document via Inspect Document in Word, both tables appear in Writer (positioning is slightly off, though).
Observed using LO 6.2 daily build (2018-09-07_23:40:38, 9a9b81c7212fa6a6762246593acf3f1950677a22) & 184.108.40.206 / Windows 7.
In 220.127.116.11 that one showing table appears worse.
Created attachment 144784 [details]
Sample DOCX with "hidden text" removed
There's no actual hidden text in the original, just the mentioned element.
Created attachment 144785 [details]
Screenshot in Word
Created attachment 144786 [details]
PDF exported in Word
Interestingly, frame placement shows the same difference in the exported PDF as the good DOCX displays in Writer.
(In reply to Aron Budea from comment #0)
> If the supposedly invisble content is removed from the document via Inspect
> Document in Word, both tables appear in Writer (positioning is slightly off,
(In reply to Aron Budea from comment #3)
> Interestingly, frame placement shows the same difference in the exported PDF
> as the good DOCX displays in Writer.
Most likely if the supposedly empty paragraph is removed, that adjusts position of the second frame/table (in Word as well).
Arch Linux 64-bit
Build ID: 36befb3aca96907a14e71e82497dbb8f03ead5ab
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk3_kde5;
Locale: fi-FI (fi_FI.UTF-8); Calc: threaded
Built on 3 October 2018
And the table is actually still there, just hidden: enabling dispaly of Hidden text under Options→Writer→Formatting Aids shows that.
The problem here seems to be that <w:rPr> under <w:pPr> is the properties of *paragraph mark* only (ECMA-376 Part 1 sect. 18.104.22.168), not properties of all runs of the paragraph.
Created attachment 147060 [details]
A minimal "vanish" document
In the attachment, there are 3 paragraphs ("Para1", "Para2", and "Para3"), of which Para2 has the w:vanish under w:pPr/w:rPr. The document shows that LibreOffice does not always hide everything in the paragraph with this setup.
Word just joins the two paragraphs (Para2 and Para3) together, as if the paragraph mark didn't exist (visible when Word's "Show/Hide ¶" is not shown, and on print preview). LibreOffice does not ignore the paragraph mark (absent functionality?), and does not hide the plain paragraph's text - but seems to be hiding the anchored objects.
Code pointer: look for LN_EG_RPrBase_vanish in writerfilter/source/dmapper/DomainMapper.cxx
Still reproducible in
Build ID: de4839e66d3d195315729b95cc144cdab96b6e74
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
(In reply to Mike Kaganski from comment #9)
> Code pointer: look for LN_EG_RPrBase_vanish in
Let's turn it into an easyhack then...