Bug 137263 - Calc selection export to PNG or JPG: multi-line text does not scale with rest of image
Summary: Calc selection export to PNG or JPG: multi-line text does not scale with rest...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: implementationError
: 125386 151969 157122 (view as bug list)
Depends on:
Blocks: Graphics-Export
  Show dependency treegraph
 
Reported: 2020-10-05 12:18 UTC by Pascal
Modified: 2023-09-20 08:06 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal 2020-10-05 12:18:06 UTC
Description:



Steps to Reproduce:
1. Open a new spreadsheet
2. Put something in cells A1 to C3 for example
3. Select cells A1 to C3
4. File, Export, select 'Selection' in the window and PNG - Portable Network Graphic (.png)
5. In the Resolution window, select for example 300 pixels per inch and then increase the width (Height will be automatically increased) and confirm by Ok
6. It works fine.
7. Now, modify a line and put a longer text (to put on two lines or more) 
8. Right-click on the cell and select 'Format Cells'
7. Select 'Alignment'
8. and activate 'Wrap text automatically'
9. Export to png as before (modify the resolution and the width)
10. The png file is not correct, the cell on two lines is not at the good place. It occurs only when you change the resolution and the width (it is useul when you want to include the png in a text)


Actual Results:
The png file doesn't fit the selected cells. A part of the table is small and written at the wrong place.

Expected Results:
A png file corresponding to the selected cells


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
It's also the case in version 6 (under Ubuntu 20, and Fedora 31 and 32).
Comment 1 Lena Dodul 2021-07-26 10:55:16 UTC
repro in 
Version: 7.3.0.0.alpha0+ (x86) / LibreOffice Community
Build ID: ee5a1b61b4460b965413a3f7ed4f9152322f1c02
CPU threads: 4; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 2 Stéphane Guillou (stragu) 2023-09-06 22:56:34 UTC
*** Bug 151969 has been marked as a duplicate of this bug. ***
Comment 3 Stéphane Guillou (stragu) 2023-09-06 23:07:57 UTC
Reproduced in 6.0.0.3, so I think it started with the fix for bug 108317, when it was made possible to only export the selection instead of the whole page.
Comment 4 Stéphane Guillou (stragu) 2023-09-06 23:15:55 UTC
*** Bug 157122 has been marked as a duplicate of this bug. ***
Comment 5 Stéphane Guillou (stragu) 2023-09-18 21:38:36 UTC
*** Bug 125386 has been marked as a duplicate of this bug. ***
Comment 6 Stéphane Guillou (stragu) 2023-09-18 21:41:04 UTC
See attachment 183522 [details] and bug 151969 comment 6.

It's as if everything is scaled except for the multiline text.