https://bugs.documentfoundation.org/show_bug.cgi?id=153000
Bug ID: 153000
Summary: FILEOPEN DOCX file types MSO_SPT=25 to 31 are wrongly
rendered
Product: LibreOffice
Version: 7.6.0.0 alpha0+ Master
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Keywords: implementationError
Severity: minor
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 184625
--> https://bugs.documentfoundation.org/attachment.cgi?id=184625&action=edit
shapes and screenshots
Open attached files. It contains the preset text warp shapes from index 24 to
31 and to each one a screenshot how it looks in Word.
The shapes are imported with a correct Type value, but they are wrongly
rendered. The error is likely in mso_CustomShape* GetCustomShapeContent(
MSO_SPT eSpType ) method in
https://opengrok.libreoffice.org/xref/core/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx?r=4cfe4699#8350
That method maps the MSO_SPT number to the mso_CustomShape shape description.
For the shapes in question you see the comment
// Don't know, simply mapping to TextSimple
The shapes are specified in
https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-odraw/9c0c5c01-9e90-41aa-ba15-477dacb4cc8e
The shapes here are special, as they will not be correctly rendered in Word
2010 and earlier, see the comments in the above given link for these shapes.
The specification shows only images but has no exact path description.
Comparing the results in Word shows, that Word maps these shapes in this way:
(24) msosptTextSimple -> (136) msosptTextPlainText
(25) msosptTextOctagon -> (137) msosptTextStop
(26) msosptTextHexagon -> (138) msosptTextTriangle
(27) msosptTextCurve -> (175) msosptTextCanDown
(28) msosptTextWave -> (156) msosptTextWave1
(29) msosptTextRing -> (148) msosptTextArchUpPour
(30) msosptTextOnCurve -> (175) msosptTextCanDown
(31) msosptTextOnRing ->(144) msosptTextArchUpCurve
So we should do the same.
The shapes (24)..(31) are not available in the UI. Therefore "Minor" severity.
But they can be created with XEnhancedCustomShapeDefaulter interface.
The attached file was created by Word from a manually changed .rtf file.
--
You are receiving this mail because:
You are the assignee for the bug.