Description: FILESAVE DOC/DOCX drops contour wrap Steps to Reproduce: 1. Open attachment 164995 [details] 2. Save as DOCX 3. File reload Actual Results: No contour Expected Results: Contour if possible Reproducible: Always User Profile Reset: No Additional Info: Version: 7.1.0.0.alpha0+ (x64) Build ID: 1e0cfd5662d95cea84e80e4fe10d52c3b1101ae6 CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win Locale: nl-NL (nl_NL); UI: en-US Calc: CL
@Justin Expecting the answer.. rotated textboxes aren't allowed in Word, so don't support contour wrap.. at least not in Word 2003
Created attachment 165002 [details] textboxContourWrap_c15.docx: edited wrapping points with Word 2016. (In reply to Telesto from comment #1) > Expecting the answer.. rotated textboxes aren't allowed in Word, so don't > support contour wrap.. at least not in Word 2003 I don't really know much about shapes / images / frames Word 2016 seems to have the full ability to do contour wrapping. In Word 2003, I only see "edit wrap points" on the picture toolbar, and it doesn't handle the shape in this Word 2016 modified file well at all. LO round-trips this one well enough, so for an ambitious and motivated person this bug might be solvable. The two documents seem similar enough on a surface level. I'm not sure why in this case LO easily round-trips <wp:wrapTight wrapText="bothSides"> <wp:wrapPolygon edited="0"> but in your case LO only wants to output <wp:wrapSquare wrapText="bothSides"/>
Created attachment 165003 [details] textboxContourWrap.doc: DOC format works too - created by Word 2016. Word 2003 can handle this one OK. So it CAN handle contour wrapping somehow. LO opens this OK too, but cannot round-trip it.
This is pretty similar to bug #136059 : there Writer exports the shape with wp:wrapSquare but Word exports it - after manually changing the wrap setting to a visually fitting one - with wp:wrapTight
(In reply to NISZ LibreOffice Team from comment #4) > This is pretty similar to bug #136059 : there Writer exports the shape with > wp:wrapSquare but Word exports it - after manually changing the wrap setting > to a visually fitting one - with wp:wrapTight Closing as duplicated *** This bug has been marked as a duplicate of bug 136059 ***
The error still exists after bug 136059 is fixed. So it cannot be a duplicate.
Currently (7.3) only for custom-shapes a wrap polygon is generated. I'll work on it and fix it together with the other wrap problems in DocxSdrExport::startDMLAnchorInline.
Contour wrap is also missing for simple lines. Draw a sloping line and set it to contour wrap. Add some wrap spacing to make the contour better visible. Save to docx and reload or open in Word. Wrap is 'square' in Word, contour is off in LO.
Wrap polygons are now created for CustomShapes, Bezier curves, and line. Fix is https://git.libreoffice.org/core/commit/61ef73bb9e06ac7325abc26698314d7e35c164cc tdf#143432 and more, improve wrap contour export PolyPolygons are currently not exported as DML but only as VML. That has to be solved beforehand. Some shape types (e.g. legacy ovals) are missing and use a rectangular default wrap polygon. They might look different in Word, but reimport in Writer will regenerate the contour wrap. Correct wrap polygons for them can be added later (with knew bug report).