Bug 54768 - Asking to restore image to original size gets wrong size when the image is clipped
Summary: Asking to restore image to original size gets wrong size when the image is cl...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Spreadsheet (show other bugs)
Version: 3.6.1.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 10:55 UTC by sergio.callegari
Modified: 2013-07-08 09:12 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Testcase (24.43 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-07-08 08:47 UTC, Mike Kaganski
Details

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.