Bug 112713 - incorrect end-of-line on very large pages (page width > 115,59 cm)
Summary: incorrect end-of-line on very large pages (page width > 115,59 cm)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Page Writer-Styles-Page
  Show dependency treegraph
 
Reported: 2017-09-28 10:08 UTC by Dirk Munk
Modified: 2023-01-02 10:30 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Munk 2017-09-28 10:08:47 UTC
I set up a new page with a very large size, 126cm x 70cm in landscape mode. When I started typing, every character appeared on a new line, as if the right margin had been reached. After I reduced the width from 126cm to 125cm, everything worked fine. As far as I'm aware Writer should be able to handle pages of 300cm X 300cm, but clearly there is a problem with very large pages. Perhaps an integer overflow, setting the sign to negative? That's what I can imagine.
Comment 1 Dieter 2017-09-28 16:39:29 UTC
I could confirm this bug with LO 5.4.2.2

I choosed Landscape (width 126cm; height 70cm; default margins) and could only type with a width of 6cm. I changed to 125cm and the width of the text was reduced to 5 cm. Everything was fine with 119 cm. So it is al little different to the original bug report.


Version: 5.4.2.2 (x64)
Build ID: 22b09f6418e8c2d508a9eaf86b2399209b0990f4
CPU threads: 4; OS: Windows 6.19; UI render: GL; 
Locale: de-DE (de_DE); Calc: group
Comment 2 Dirk Munk 2017-09-28 16:58:44 UTC
I used margins of 5cm, that can explain the differences.
Comment 3 QA Administrators 2019-01-30 03:41:58 UTC Comment hidden (obsolete)
Comment 4 Dieter 2019-01-30 08:38:56 UTC Comment hidden (obsolete)
Comment 5 Dirk Munk 2019-01-30 11:11:48 UTC
The problem still exists.

present version: Version: 6.1.4.2 (x64)

I made a new document, 126 x 70 cm (landscape), with 5 cm margins all around.
After typing 2 or 3 characters the cursor jumps to a new line.
Comment 6 Dieter 2019-01-30 11:32:06 UTC
Dirk, sorry you're right! I also still can confirm that problem
Comment 7 Martin Srdoš 2020-12-31 17:50:10 UTC
Still reproducible in
Version: 7.2.0.0.alpha0+ (x64)
Build ID: c0eee433e079d8e3413f4691607e075b99af92b0
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: en-US
Calc: threaded

It depends of how big is margin. I set all margin to 0 cm and the line wrapping is with 115,60 cm. With 115.59 cm it works ok. When I set only left margin to 5 cm, then it works ok with 120.59 cm and bad working with 120.60 cm. (the 5 cm more). When I set also right margin, then it is more by the margin size.
Comment 8 Martin Srdoš 2020-12-31 17:53:03 UTC
Reproducible also in
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

So I am setting version to OOo
Comment 9 QA Administrators 2023-01-01 03:24:06 UTC Comment hidden (obsolete)
Comment 10 Dieter 2023-01-02 10:30:20 UTC
Still present in

Version: 7.5.0.1 (X86_64) / LibreOffice Community
Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

Steps
1. Open new writer document
2. Format -> Page Style -> Page -> Landscape | width 126cm | height 70cm | text magin 2cm -> OK
3. Try to type a line of text

Actual result
Maximum text width is 6cm

Expected result
You should type within the whole text area

Additional information
Change page width to 119cm and it works (115,59 cm as maximum text area; see comment 7)