Bug 54768

Summary: Asking to restore image to original size gets wrong size when the image is clipped
Product: LibreOffice Reporter: sergio.callegari
Component: SpreadsheetAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: bfo.bugmail
Version: 3.6.1.2 release   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Testcase

Description sergio.callegari 2012-09-11 10:55:57 UTC
Tested in libreoffice calc.

The image is restored to the original size ignoring the clipping.

E.g. Image that is 10cm high, but is clipped 1cm on top. Asking the image to be restored to original size makes it 10cm tall rather than 9 as it should because of clipping. Hence the image gets distorted.
Comment 1 bfoman 2013-03-22 09:38:02 UTC
Could you attach any example documents to allow others to check on different
system/build?
Comment 2 Mike Kaganski 2013-07-08 08:47:35 UTC
Created attachment 82170 [details]
Testcase

REPRODUCIBLE with LO 4.0.4.2 and 4.1.0.2.0 under Win7x64.

Steps to reproduce:
1. Create a new empty worksheet.
2. Insert a picture (e.g. Insert->Picture->From File...)
3. Click on the inserted image, Picture toolbar appears
4. Use "Crop" tool to crop 2 cm from top -> OK
5. Right-click on the cropped image and select "Original Size".

Expected behaviour: the image stays proportional.

Actual result: the image stays cropped, but stretches to the size of original image, thus becomes distorted.

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.