Bug 37114 - Gradient deformed when paste as metafile GDI
Summary: Gradient deformed when paste as metafile GDI
Status: CLOSED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.4.0 Beta4
Hardware: Other All
: medium normal
Assignee: Cédric Bosdonnat
URL:
Whiteboard: bibisected35 bibisected35older target...
Keywords: regression
Depends on:
Blocks:
 
Reported: 2011-05-11 08:11 UTC by Laurent Balland
Modified: 2012-03-21 13:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test of different gradients (20.83 KB, application/vnd.oasis.opendocument.text)
2011-05-11 09:03 UTC, Laurent Balland
Details
Screenshot in LibO 3.3.2 (87.69 KB, image/png)
2011-05-11 09:05 UTC, Laurent Balland
Details
Screenshot in LibO 3.4.0 beta 4 (72.15 KB, image/png)
2011-05-11 09:06 UTC, Laurent Balland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Balland 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 Balland 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 Balland 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 Balland 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 Balland 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 Balland 2011-05-17 04:45:49 UTC
Same behavior in 3.4 beta5
Comment 7 Laurent Balland 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 (allotropia) 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 :)