https://bugs.documentfoundation.org/show_bug.cgi?id=153258
Bug ID: 153258
Summary: FILEOPEN DOCX VML some WordArt is not detected as
Fontwork and thus shrinks to nominal text size
Product: LibreOffice
Version: 7.6.0.0 alpha0+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 184973
--> https://bugs.documentfoundation.org/attachment.cgi?id=184973&action=edit
WortArt shape with type name "mso-spt167"
Open attached file. It contains a VML WordArt
'mso_sptTextDeflateInflateDeflate' and a screenshot of how it looks in Word.
The SimpleShape::implConvertAndInsert(..) method in
https://opengrok.libreoffice.org/xref/core/oox/source/vml/vmlshape.cxx?r=ceaff89c
has code to prevent 'resize autoshape to fit text' for Fontwork shapes. It uses
aShapeType.startsWith("fontwork") as criterion. But that does not work for all
WordArt shapes, some start with mso-spt. The used strings are in
pNameTypeTableArray[] in
https://opengrok.libreoffice.org/xref/core/svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx?r=96e3a641
Instead the IsTextPath() method of the SdrObject should be used. That detects
whether it is a Fontwork shape independent from a type name but uses directly
the property "TextPath".
--
You are receiving this mail because:
You are the assignee for the bug.