Bug 104557 - FILEOPEN: DOCX - One triangle (different shape/image type than the others..) doesn't get rendered
Summary: FILEOPEN: DOCX - One triangle (different shape/image type than the others..) ...
Status: NEW
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
Depends on:
Blocks: OOXML-2007 VML-Shapes
  Show dependency treegraph
 
Reported: 2016-12-10 14:55 UTC by Telesto
Modified: 2024-09-04 12:16 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
File in MS Word 2010 (139.38 KB, application/pdf)
2016-12-10 14:56 UTC, Telesto
Details
trimmed sample (13.50 KB, application/wps-office.docx)
2017-09-26 23:27 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2016-12-10 14:55:52 UTC
Description:
The triangle on page 9 is missing. 

Steps to Reproduce:
1.Open attachment 83586 [details] (bug 67716)
2.Scroll to page 9 and compare this with Word 

Actual Results:  
Triangle is missing

Expected Results:
Triangle should be visible


Reproducible: Always

User Profile Reset: No

Additional Info:
Found in
Version: 5.4.0.0.alpha0+
Build ID: b894104a0b02a9b074c76feb925389d7bee6a493
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-12-10_01:00:52
Locale: nl-NL (nl_NL); Calc: CL

and in:
Versie: 4.4.6.3 
Build ID: e8938fd3328e95dcf59dd64e7facd2c7d67c704d
Locale: nl_NL

and in:
4.2.0.4


User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Comment 1 Telesto 2016-12-10 14:56:22 UTC
Created attachment 129460 [details]
File in MS Word 2010
Comment 2 Xisco Faulí 2016-12-11 12:28:10 UTC Comment hidden (obsolete)
Comment 3 Xisco Faulí 2016-12-18 19:49:59 UTC
My previous comment 2 is incorrect, even in 

Version: 4.1.0.0.alpha1+
Build ID: a2c9d4f8bbde97f175bae4df771273a61251f40

only 4 triangles are displayed and there should be 5. In 3.3 or 3.6 only two are displayed. Updating the information accordantly.
Comment 4 Cor Nouws 2016-12-18 20:05:16 UTC
The rectangles are different kind of objects/shapes.
Hence the improvement compared to earlier versions of LibreOffice.

(NB: I tried to ungroup the one op page 7, got a warning box and a crash..)
Comment 5 Julien Nabet 2016-12-29 12:34:00 UTC
Just for the record, on pc Debian x86-64 with master sources updated today, I don't reproduce this (gtk3, gtk2 or gen rendering).
Comment 6 Xisco Faulí 2016-12-29 14:55:51 UTC
I can still reproduce it in

Version: 5.4.0.0.alpha0+
Build ID: 767ec2f138d824b6b51eef73ac9b7d2b193a1e98
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 7 Timur 2017-09-05 11:06:18 UTC
If I resave the file in Word 2010 with "maintain compatibility" i.e. 2007 DOCX, triangle on page 9 is still missing in LO, but if I save it without, i.e. 2010 DOCX, triangle is there.
Comment 8 Yousuf Philips (jay) (retired) 2017-09-26 23:26:01 UTC
So i dug into the XML and see that if the <v:shapetype> child tag is in the <v:group> tag, then the triangle gets rendered.

<w:pict>
 <v:group id="_x0000_s1037" style="..." coordorigin="...">
   <v:shapetype id="_x0000_t32" coordsize="21600,21600" o:spt="32" o:oned="t" path="m,l21600,21600e" filled="f">
     <v:path arrowok="t" fillok="f" o:connecttype="none" />
     <o:lock v:ext="edit" shapetype="t" />
   </v:shapetype>
   <v:shape ... />
   <v:shape ... />
   <v:shape ... />
 </v:group>
</w:pict>

I attempted to trim the file down to just the single triangle page, and even when setting it to maintain compatibility it added the <v:shapetype>, so i trimmed the file down to also show the previous and next triangles and then it didnt add the <v:shapetype>.
Comment 9 Yousuf Philips (jay) (retired) 2017-09-26 23:27:14 UTC
Created attachment 136556 [details]
trimmed sample
Comment 10 QA Administrators 2018-09-27 02:42:30 UTC Comment hidden (obsolete)
Comment 11 Cor Nouws 2018-11-02 11:11:06 UTC
the same in 6.2.0-alpha1

select image and use tab to get all shapes/.. selected.

copying one ghost shape to Draw shows a triangle
copying the other ghost shape to Draw still shows a ghost shape
Comment 12 QA Administrators 2022-09-03 03:38:38 UTC Comment hidden (obsolete)
Comment 13 Gabor Kelemen (allotropia) 2022-09-04 12:21:47 UTC
Still missing in

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 27892a5e12dada80226f778ab2bd14b1bdaab58a
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded
Comment 14 QA Administrators 2024-09-04 03:14:38 UTC Comment hidden (obsolete)
Comment 15 Regina Henschel 2024-09-04 12:16:18 UTC
The missing triangle has no path attribute. It should have used the shapetype defined in the previous group, but that does not work on import.

The problem still exists in Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1a95aa91f7cfe7765a5277cca09b35c398638a23
CPU threads: 32; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded