Bug 161053 - the distance between first and second lines in paragraphs is smaller than others
Summary: the distance between first and second lines in paragraphs is smaller than others
Status: RESOLVED DUPLICATE of bug 103099
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Paragraph-Line-Spacing
  Show dependency treegraph
 
Reported: 2024-05-12 21:34 UTC by ardv
Modified: 2024-08-26 13:47 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
example file (52.41 KB, application/vnd.oasis.opendocument.text)
2024-05-12 21:35 UTC, ardv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ardv 2024-05-12 21:34:35 UTC
Description:
when i write a paragraph in Arabic language and change the line spacing below 100% the the distance between the first and second lines in paragraphs is smaller than others.
an example file is attached

Steps to Reproduce:
1. a paragraph in Arabic language
2. change the paragraph line spacing below 100 percent

Actual Results:
space between 2 first line is smaller than others

Expected Results:
the space should be similar to other lines


Reproducible: Always


User Profile Reset: No

Additional Info:
make the lines spacing similar
Comment 1 ardv 2024-05-12 21:35:37 UTC
Created attachment 194095 [details]
example file
Comment 2 m_a_riosv 2024-05-12 22:16:27 UTC
Seems it happens whet for the paragraph style, in this case 'Default..', has the line spacing as 'Proportional' in the 'Indents & Spacing' tab.

Looks fine for other types.

Maybe is there some other option creating the issue.

Reproducible
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2b85bceca88ab119fff5cbdc41fe913435a479ca
CPU threads: 16; OS: Windows 11 (10.0 build 22631); UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Of the versions I have installed.
Last working for me
Version 3.6.7.2 (Build ID: e183d5b)

First showing the issue
Version: 4.4.7.2
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: es_ES
Comment 3 raal 2024-05-13 21:26:38 UTC
This seems to have begun at the below commit in bibisect repository/OS bibisect-44max.
Adding Cc: to Michael Stahl ; Could you possibly take a look at this one?
Thanks
 21e12db3d1ea89affb3f5c97bf3625a8be70f1a7 is the first bad commit
commit 21e12db3d1ea89affb3f5c97bf3625a8be70f1a7
Author: Matthew Francis <mjay.francis@gmail.com>
Date:   Sun Mar 15 04:52:13 2015 +0800

    source-hash-4e223fab04279c3583689e69fa1342966e81de36
    
    commit 4e223fab04279c3583689e69fa1342966e81de36
    Author:     Michael Stahl <mstahl@redhat.com>
    AuthorDate: Wed Oct 29 23:50:21 2014 +0100
    Commit:     Michael Stahl <mstahl@redhat.com>
    CommitDate: Thu Oct 30 15:56:07 2014 +0100
    
        fdo#79602: sw: fix text formatting of proportional line space < 100%
    
        SwTxtFormatter::CalcRealHeight(): Apply the special treatment of < 100%
        line space shrinking the Height() of the line only to the first line
        in a paragraph; the subsequent ones are shrunk again (to the square of
        the desired proportion) 30 lines later.
    
        Also set the Ascent of the line, as the wrong base-line causes the lower
        part of the line to be clipped.
    
        (regression from 42532d42bfcdb12df86376cda009e8e315a82153)
    
        Change-Id: I0424396263293deaa318c80eedc2237cdb01b22b
Comment 4 László Németh 2024-08-26 13:47:01 UTC

*** This bug has been marked as a duplicate of bug 103099 ***