Created attachment 175166 [details] File: Different indents showing the inconsistency of the rendering Two consecutive paragraphs with the same border (arrangement, line and padding): both have the same indent but the borders don't merge as specified if one is using first line indent. The issue appears only with certain indentation values, which suggests a rounding error when the rendering is performed. Steps to Reproduce: 1) Create two different paragraph styles: both must have the same 'Borders' values, 'Merge with next paragraph' should also be checked. 2) Enter 'Before text' indent of +1.13 cm for the first paragraph. 3) Enter 'Before text' indent of +1.62 cm and 'First Line' indent of −0.49 cm for the second paragraph. Actual Results: The first paragraph border is not merge with the second paragraph border. Expected Results: The first paragraph border should be merged with the second paragraph border. Reproducible: Always Additional Information: It occurs depending on the values entered; repeating the steps given above, the border will merge with 'Before text' indent of +1.63 cm and 'First Line' indent of −0.50 cm for the second paragraph. Two consecutive paragraphs should always have their borders merged if they display the same indent and border properties regardless of the first line indent.
Created attachment 175167 [details] Screenshot of the issue
I confirm the described behaviour, but I think there is a different underlying problem: If you change measurement unit to millimetre (Tools => Options => LibreOffice Writer => General), you will see that it is unpossible to set left indent to 11,3 mm (always changes to 11,31 mm) or to 16,2 mm (always changes to 16,19). So intend never has same value and therefor borders don't merge. So I changed bug summary a bit and hope you agree, phv.
The cause seems to be the conversion of measurements - whether inch, millimeter, point - into what I assume to be twip unit. Rounding performed after the calculation changes the measurements. Therefore, the result of the operation is not equal to what is displayed on the screen. To summarize: A (mm) + B (mm) = C (mm) but after conversion and rounding: A (twip) + B (twip) ≠ C (twip) I don't know what to think about it considering that the use of twip measurement unit is not even proposed for LibreOffice documents. The enhancement proposed in bug #138109 could be the solution to this issue.
Dear phv, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Still present in Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 40617d867346956588ac023511f31210107217f4 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. To make bug more visible make sure, that measurement unit is mm (Tools -> Options -> LibreOffice Writer -> General) 2. Place cursor within a paragraph -> Format -> Paragraph -> Indents & Spacing -> Before text 11,3 mm 4. OK -> Format Actual result Value changes to 11,31 mm Expected result Value still 11,3 mm