Bug 143588 - When a line is across pages it would not be able to print correctly
Summary: When a line is across pages it would not be able to print correctly
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-28 15:23 UTC by Franklin Weng
Modified: 2022-12-27 18:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample file for this problem (22.61 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-07-28 15:23 UTC, Franklin Weng
Details
Diagonal line extended to the edge of the page - p1 (154.96 KB, image/png)
2021-07-28 15:25 UTC, Franklin Weng
Details
Diagonal line extended to the edge of the page - p2 (230.45 KB, image/png)
2021-07-28 15:25 UTC, Franklin Weng
Details
Expected behavior - p1 (19.61 KB, image/png)
2021-07-28 15:28 UTC, Franklin Weng
Details
Expected behavior - p2 (13.28 KB, image/png)
2021-07-28 15:28 UTC, Franklin Weng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franklin Weng 2021-07-28 15:23:57 UTC
Created attachment 173922 [details]
Sample file for this problem

In Calc if we draw a line (in this case a diagonal line) which is in a merged cell, which happens to be across the page, when printing it would not be able to print correctly.

You can see the result in print preview.  I will attach the screenshot later too.

In the print preview (also the printed result) the line was extended to the bottom (and from the beginning) of its pages.

Opening this file in Microsoft Excel, the diagonal line is shown corrected (see expected-1 and expected-2 screenshot). 

The file is generated by LibreOffice Calc 6.3.6.2 while I open it with 7.1.3.2.

Version: 7.1.3.2 / LibreOffice Community
Build ID: 47f78053abe362b9384784d31a6e56f8511eb1c1
CPU threads: 4; OS: Linux 5.10; UI render: default; VCL: kf5
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
Calc: threaded

In my 7.1.3.2 I see one lines extending to the edge of the page.
Comment 1 Franklin Weng 2021-07-28 15:25:25 UTC
Created attachment 173923 [details]
Diagonal line extended to the edge of the page - p1
Comment 2 Franklin Weng 2021-07-28 15:25:42 UTC
Created attachment 173924 [details]
Diagonal line extended to the edge of the page - p2
Comment 3 Franklin Weng 2021-07-28 15:28:10 UTC
Created attachment 173925 [details]
Expected behavior - p1

The sample file opened in Excel.  The diagonal line is shown and printed correctly, which is expected also in Calc.  

(However Excel does not show the repeated head row and that is not the problem what I want to discuss here.)
Comment 4 Franklin Weng 2021-07-28 15:28:24 UTC
Created attachment 173926 [details]
Expected behavior - p2
Comment 5 BogdanB 2021-07-29 08:53:26 UTC
Confirm with
Version: 7.1.5.2 (x64) / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: threaded
Comment 6 BogdanB 2022-12-27 18:05:21 UTC
Working now, please retest.

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: a09c5c69e3b5fbf448cae1d6c476f39067e40023
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded