Bug 37114

Summary: Gradient deformed when paste as metafile GDI
Product: LibreOffice Reporter: Laurent BP <jumbo4444>
Component: WriterAssignee: Cédric Bosdonnat <cedric.bosdonnat.ooo>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: medium CC: mst.fdo, thb
Version: 3.4.0 Beta4Keywords: regression
Hardware: Other   
OS: All   
Whiteboard: bibisected35 bibisected35older target:3.5.0
i915 platform: i915 features:
Attachments: Test of different gradients
Screenshot in LibO 3.3.2
Screenshot in LibO 3.4.0 beta 4

Description Laurent BP 2011-05-11 08:11:18 UTC
To reproduce :
- in any module, draw a shape with area filled as gradient
- choose a non-symmetric, for instance gradient #3
- copy
- special paste > metafile GDI
=> the gradient is deformed : start of the gradient seems to be in the middle of shape.
Comment 1 Laurent BP 2011-05-11 09:03:25 UTC
Created attachment 46606 [details]
Test of different gradients

Test file built with LibO 3.3.2 to compare view of original shape and pasted shape as GDI metafile.
Comment 2 Laurent BP 2011-05-11 09:05:00 UTC
Created attachment 46607 [details]
Screenshot in LibO 3.3.2

View of TestGradient.odt file in LibreOffice 3.3.2: both columns are almost similar
Comment 3 Laurent BP 2011-05-11 09:06:43 UTC
Created attachment 46608 [details]
Screenshot in LibO 3.4.0 beta 4

View of TstGradient.odt file in LibreOffice 3.4.0 beta 4: some gradients are very different.
Comment 4 Rainer Bielefeld Retired 2011-05-11 09:50:47 UTC
Reproducible] with "LibreOffice 3.4Beta4  – WIN7  Home Premium  (64bit) German UI [DEV300m103 (Build:4)]".

64 bit AMD Phenom II X4 955 Processor 3.2 GHz, 4GB RAM, 
Graphic Card: NVIDIA GeForce GT 430
 
It's "Writer only" for me, no problem in DRAW and CALC

Effect is visible when I copy a shape with particular gradients from DRAW and paste it to WRITER as GDI

Also Copy / paste as bitmap is affected.

@Laurent BP
Your Platform / OS is?

@Cédric: 
WRITER only, so it might be one for you?
Please feel free to reassign if it's not your area!
Comment 5 Laurent BP 2011-05-11 13:02:31 UTC
@Reiner: WinXP

Sorry for the "any module". I went too fast with my tests, and you are right: it is only "paste as GDI metafile" in Writer that is incorrect, whatever the module where the shape was built (Writer, Draw, Calc, Impress). But paste as GDI metafile works fine in Draw, Impress and Calc.

Actually I discovered the bug when pasting in Writer from Draw, that's why I incorrectly chose "Draw" as module.

Paste as Bitmap suffers from the same bug.
Comment 6 Laurent BP 2011-05-17 04:45:49 UTC
Same behavior in 3.4 beta5
Comment 7 Laurent BP 2011-12-26 13:35:56 UTC
Hello,

I can NOT reproduce with LibO 3.5b2. I supposed that Cedric solved it!
Comment 8 Michael Stahl 2012-03-21 13:49:44 UTC
so just tested this, and i can reproduce it on Linux on libreoffice-3-4,
but not on libreoffice-3-5 or master.

so thanks to the anonymous hacker that fixed it :)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.