Bug 118025 - FILESAVE: SVG Export of Chart Diagram in shows malformed multiline text on axis legend
Summary: FILESAVE: SVG Export of Chart Diagram in shows malformed multiline text on ax...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-06 08:58 UTC by post
Modified: 2018-06-22 14:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
This is my chart. (19.49 KB, image/png)
2018-06-06 09:00 UTC, post
Details
This is the exported svg image of the chart (29.91 KB, image/png)
2018-06-06 09:01 UTC, post
Details
Example document for reproducing the bug (21.61 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-06-22 14:11 UTC, post
Details

Note You need to log in before you can comment on or make changes to this bug.
Description post 2018-06-06 08:58:16 UTC
Description:
If I have chart in Calc, create a two-line text y-axis and export the chart as svg image, then the two lines of the text at y-axis are not readable any more because they are on top of each other.

Steps to Reproduce:
1. Create a Chart
2. Create a y-axis legend
3. Make the text of the y-axis legend at least two lines long
4. Export the Chart as svg image

Actual Results:  
All lines of the y-axis legend are on top of each other and not readable any more. 

Expected Results:
The lines should be next to each other, so that you are able to read the legend text.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.0.4.2 (x64)
Build-ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
CPU-Threads: 8; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: CL


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Comment 1 post 2018-06-06 09:00:39 UTC
Created attachment 142552 [details]
This is my chart.

This is the chart. It looks fine and I want the exported image to look as the original chart in the spreadsheet.
Comment 2 post 2018-06-06 09:01:10 UTC
Created attachment 142553 [details]
This is the exported svg image of the chart
Comment 3 Buovjaga 2018-06-22 12:56:40 UTC
(In reply to post from comment #1)
> Created attachment 142552 [details]
> This is my chart.
> 
> This is the chart. It looks fine and I want the exported image to look as
> the original chart in the spreadsheet.

Please attach an example document.
Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 4 post 2018-06-22 14:11:29 UTC
Created attachment 143043 [details]
Example document for reproducing the bug

The y-axis legend text swaps lines. The upper line of the y-axis legend becomes the lower line in SVG export. That's wrong.
Comment 5 Buovjaga 2018-06-22 14:30:57 UTC
(In reply to post from comment #4)
> Created attachment 143043 [details]
> Example document for reproducing the bug
> 
> The y-axis legend text swaps lines. The upper line of the y-axis legend
> becomes the lower line in SVG export. That's wrong.

Thanks. Good news: the problem seems to be fixed in master.
Not sure what you used to open the SVG, though.

Try: https://dev-builds.libreoffice.org/daily/master/Win-x86_64@42/current/

Arch Linux 64-bit
Version: 6.2.0.0.alpha0+
Build ID: 5b42a17dc99fba2ccf8dd8d0a8e0e4e836e30120
CPU threads: 8; OS: Linux 4.17; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Built on June 22nd 2018