Bug 161990 - Subscripts wrongly positioned on PDF export
Summary: Subscripts wrongly positioned on PDF export
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
24.2.4.2 release
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:25.2.0 target:24.8.0.2 target:...
Keywords: bibisected, bisected, regression
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2024-07-10 20:26 UTC by Michael Zapf
Modified: 2024-07-23 01:43 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Source ODT file and its PDF export (52.02 KB, application/zip)
2024-07-10 20:26 UTC, Michael Zapf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Zapf 2024-07-10 20:26:50 UTC
Created attachment 195220 [details]
Source ODT file and its PDF export

When a Writer document is exported to PDF which contains multiple instances of objects from Calc, containing text that has subscripted characters, the subscripts are rendered increasingly deeper below the character on higher pages of the document.

In my example (attached), the indices wander down from page to page until they seem to be exponents of the line below. The pasted object (containing the text) is always the same.

Compare the source ODT with the resulting PDF.

This is a major bug because the resulting PDF documents are rendered incorrectly.
Comment 1 Michael Zapf 2024-07-10 20:29:14 UTC
Correction: The inserted object is from Draw, not Calc.
Comment 2 raal 2024-07-10 21:22:02 UTC
Confirm with Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2afdc61dd3138b383fb73dae2242ba1a9c8de901
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 3 m_a_riosv 2024-07-10 22:42:42 UTC
Reproducible
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 872e0d3c8a17b582f04b82aa2525e614080acda9
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded


First version that fails on the ones I have installed.
Version: 24.2.4.2 (X86_64) / LibreOffice Community
Build ID: 51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded

Latest version that works on the ones I have installed.
Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
Comment 4 raal 2024-07-12 13:31:36 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-24.2.
Adding Cc: to Mike Kaganski ; Could you possibly take a look at this one?
Thanks
 36d4001b830edbbd2826b786a39f943787767f62 is the first bad commit
commit 36d4001b830edbbd2826b786a39f943787767f62
Author: Jenkins Build User <tdf@maggie.tdf>
Date:   Fri May 3 14:52:56 2024 +0200

    source 5a25899a9c5c0c4e6fb92ca355ea1e24cec3a747
166468: tdf#160702: improve text positioning | https://gerrit.libreoffice.org/c/core/+/166468
Comment 5 Mike Kaganski 2024-07-13 17:58:34 UTC
https://gerrit.libreoffice.org/c/core/+/170432
Comment 6 Commit Notification 2024-07-13 21:17:50 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ccc3996cfcbebe14e9d5f3511906cfc64ddf3452

tdf#161990: take MapMode's origin point into account

It will be available in 25.2.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:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Commit Notification 2024-07-14 20:38:33 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/0243bb7f7912c1fd3d07b37aa6f2e79287437a01

tdf#161990: take MapMode's origin point into account

It will be available in 24.8.0.2.

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:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Commit Notification 2024-07-14 20:38:36 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/2ce7999949adc0d5050e9f16f0980a07ba90c690

tdf#161990: take MapMode's origin point into account

It will be available in 24.2.6.

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:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.