Bug 145271

Summary: after convert to metafile, rotating a shape doesn't rotate the fill gradient any more
Product: LibreOffice Reporter: Joachim Kreutzer <joachim.kreutzer>
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: normal CC: ilmari.lauhakangas, stephane.guillou
Priority: medium Keywords: needsDevAdvice
Version: Inherited From OOo   
Hardware: x86 (IA32)   
OS: All   
See Also: https://bz.apache.org/ooo/show_bug.cgi?id=121185
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 114005    
Attachments: When the drawing is printed, the shape will be rotated.

Description Joachim Kreutzer 2021-10-22 09:04:17 UTC
Description:
If rotate any shape, the fill gradient doesn't affect the rotation. This is ok.

But, the rotation of the fill gradient can be forced when the shape is 'convertet to Meta'.

Since Version 7.0, this isn't working anymore.
But however, if you export the shape with pdf, or if you print it, the Rotation of the fill gradient is still be done.

Steps to Reproduce:
1. Draw an Rectangle
2. Choose fillstyle: axial, 0°
3. Convert to metafile
4. Rotate it, for example 30°



Actual Results:
Problem: the axial fillstyle stays at 0°.

This behavior ist new since Version 7.0

Expected Results:
The axial fillstyle should rotate by 30°.




Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
If you choose pdf-export, the fill style is rotated correctly by 30°!
Comment 1 Joachim Kreutzer 2021-10-22 09:15:47 UTC
Created attachment 175873 [details]
When the drawing is printed, the shape will be rotated.
Comment 2 Buovjaga 2022-11-09 15:55:48 UTC
This does not seem to be a regression as it behaves the same way in 3.3.0, 6.4 and the oldest of 7.0 bibisect repo (tested on Windows). Also seen on Linux. But I don't know if this is a limitation of the metafile format. Some developer could look into this.

Arch Linux 64-bit
Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b57307e8f3553fcb292c9c11fcf58bcef3a6cb3c
CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 8 November 2022
Comment 3 Stéphane Guillou (stragu) 2022-11-11 08:28:47 UTC
A commit that might be relevant:

https://git.libreoffice.org/core/+/fc91501f9f0a24ccfa69c2b4baf070aac9e2d0f0%5E%21