Bug 159802 - Writer Document does not print with Form detail in 24.2 release
Summary: Writer Document does not print with Form detail in 24.2 release
Status: CLOSED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:24.8.0 target:24.2.2
Keywords: bibisected, regression
: 159965 160280 160628 (view as bug list)
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
 
Reported: 2024-02-20 16:04 UTC by erflungued
Modified: 2024-05-08 06:32 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot v24.2.2.0 (90.92 KB, image/png)
2024-02-20 16:08 UTC, erflungued
Details
Screenshot v7.6.4.2 (148.01 KB, image/png)
2024-02-20 16:09 UTC, erflungued
Details
Sample Document (34.20 KB, application/vnd.oasis.opendocument.text)
2024-02-20 16:10 UTC, erflungued
Details

Note You need to log in before you can comment on or make changes to this bug.
Description erflungued 2024-02-20 16:04:02 UTC
Description:
Created a new document in 24.2 containing Form objects. Form object details are not printed with 24.2.0 (or 24.2.2.0 Dev 2024-02-18_10.19.45) but do print when same document is opened with Write 7.6.4.2. Replicated on Win_x86-64 and Debian.

Steps to Reproduce:
1.Create a Write document in version 24.2.0.3 then add a table. Add objects from Form Menu in design mode. 
2.From the File menu, select Print.
3.The print preview does not show Form objects. Nor do the objects get printed on paper (or PDF).
4.Open the same document in Write version 7.6.4.2 and the objects are displayed in print preview and print correctly on paper (or PDF)

Actual Results:
Writer does not print Form objects to print preview nor paper or PDF

Expected Results:
Form objects would display in print preview and print to paper (or PDF)


Reproducible: Always


User Profile Reset: No

Additional Info:
1.Note that Form objects *do* appear correctly in the File Menu, Print Preview function in Write 24.2
2.Form objects print correctly in Write 7.6.4.2
3.Replicated on Win-x86_64 and Debian

Version: 24.2.2.0.0+ (X86_64) / LibreOffice Community
Build ID: b5a5cae0e78e989c421a376bb55a724981c74d87
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: CL threaded
Comment 1 erflungued 2024-02-20 16:08:07 UTC
Created attachment 192664 [details]
Screenshot  v24.2.2.0
Comment 2 erflungued 2024-02-20 16:09:25 UTC
Created attachment 192665 [details]
Screenshot v7.6.4.2
Comment 3 erflungued 2024-02-20 16:10:29 UTC
Created attachment 192666 [details]
Sample Document
Comment 4 BogdanB 2024-02-20 16:47:10 UTC
Confirm with
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 5 BogdanB 2024-02-20 16:55:46 UTC
 07852e0c1132528312359059bc53ac6789e43a36 is the first bad commit
commit 07852e0c1132528312359059bc53ac6789e43a36
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Tue Jul 4 19:22:20 2023 +0200

    source d408fe5cd45c9594feecec727ab2f73c66e361d0
    
    source d408fe5cd45c9594feecec727ab2f73c66e361d0

 instdir/program/libvcllo.so | Bin 20159112 -> 20159112 bytes
 instdir/program/setuprc     |   2 +-
 instdir/program/versionrc   |   2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

unnecessary LogicToPixel in CheckBox::Draw
we are already in logical pixels here, and the ImplDraw call expects
logical pixels

Change-Id: I7eab69b92998fd36c811fc7ac3949adb2f4fff7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153966
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Comment 6 BogdanB 2024-02-20 16:58:46 UTC
Seems a very small change in the code, so, if the developer will take a look, could be a chance to be solved fast.
Comment 7 raal 2024-03-03 06:44:15 UTC
*** Bug 159965 has been marked as a duplicate of this bug. ***
Comment 8 Robert Großkopf 2024-03-03 07:35:25 UTC
Have a look at https://bugs.documentfoundation.org/attachment.cgi?id=192865 Printing is available for most of the form elements, except Check Box, Radio Button and Combo Box (don't know why Combo Box isn't printed while List Box is printed).
Comment 9 Commit Notification 2024-03-04 08:27:57 UTC
Noel Grandin committed a patch related to this issue.
It has been pushed to "master":

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

tdf#159817 tdf#159802 Form controls coordinates wrong when export to pdf

It will be available in 24.8.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 10 Commit Notification 2024-03-04 11:18:23 UTC
Noel Grandin committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/10346f5ff6f0ab6e3b2deb709e4f3e9cc49bf80c

tdf#159817 tdf#159802 Form controls coordinates wrong when export to pdf

It will be available in 24.2.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 11 BogdanB 2024-03-05 20:02:00 UTC
Noel, thanks for fixing this

Verified with
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a082762fb3f41237df6385ab27f7a75d6ff92690
CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 12 V Stuart Foote 2024-03-20 19:29:02 UTC
*** Bug 160280 has been marked as a duplicate of this bug. ***
Comment 13 ady 2024-04-13 13:21:14 UTC
*** Bug 160628 has been marked as a duplicate of this bug. ***
Comment 14 kalyl 2024-05-08 03:42:35 UTC Comment hidden (spam)