When converting a word document to a PDF the values for the X and Y access are truncated/rounded losing the original values associated.
Steps to Reproduce:
1. Convert file to PDF using 'soffice --headless --nolockcheck --nodefault --nofirststartwizard --nologo --norestore --convert-to pdf --outdir /tmp /tmp/test.docx'
2. Open PDF using a viewer
3. Observer the X and Y axis values do not match between the original DOCX and the converted PDF
The X and Y axis values are incorrect
The X and Y axis values are correct
User Profile Reset: No
This looks related to issue
But seems to be more of a rounding/truncation problem instead of just a scaling one
Created attachment 158214 [details]
DOCX file with correct X and Y axis
Created attachment 158215 [details]
PDF file with incorrect X and Y axis
I also noticed that the equation displayed on the graph is incorrect:
y = -8.7361x + 1.8318
in the original vs the conversion:
f(x) = − 8.74 x + 1.83
Seems to be a similar rounding issue
Same issue present in LibreOffice 22.214.171.124 30(Build:2)
Issue still present in LibreOffice 126.96.36.199 40(Build:2) but also looses some additional axis values
Created attachment 158217 [details]
PDF file with incorrect X and Y axis worse (6.4.2)
Regression introduced by:
author Balazs Varga <email@example.com> 2019-05-30 13:30:26 +0200
committer László Németh <firstname.lastname@example.org> 2019-06-03 16:11:06 +0200
commit 7f373a4c88961348f35e4f990182628488878efe (patch)
parent 90ace7be71d41257e29a28fa2e7c0adf8f84050d (diff)
tdf#48041 Chart: do not duplicate major value
Bisected with: bibisect-linux64-6.4$
Adding Cc: to Balazs Varga
I do not think it is a regression, because we have always used two decimals in case of embedded charts as a GENERAL number format, unlike the Calc where we use UNLIMITED_PRECISION.
By the way a potential fix in gerrit: https://gerrit.libreoffice.org/c/core/+/90984
Balazs Varga committed a patch related to this issue.
It has been pushed to "master":
tdf#130969 Chart view: fix incorrect precision of axis labels
It will be available in 7.0.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
*** Bug 134219 has been marked as a duplicate of this bug. ***