sw/source/core/text/itrcrsr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 65c7b52705b8756d2841ff9603e37391b084076c
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sat Feb 7 12:25:00 2026 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sat Feb 7 14:37:56 2026 +0100

    Reorder logically
    
    This is found by code reading; I don't know of any actual problem
    caused by this.
    
    Commit 0a63a8934d0d5ca51a4da619034264da147b8c7a (#81704#: Selection/
    travelling in doubleline portions, 2000-12-11) added code to set and
    restore the proportion. But it seems, that the value to restore is
    taken after setting the new value, so there will be no restore.
    
    This changes the order of the lines in what seems logical way. Hope
    it won't break things :-)
    
    Change-Id: Ia82717c3b731cc3e0256bcf97d86c231900e3ea2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198883
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/sw/source/core/text/itrcrsr.cxx b/sw/source/core/text/itrcrsr.cxx
index 3b659e19be36..7b5f6ce4a363 100644
--- a/sw/source/core/text/itrcrsr.cxx
+++ b/sw/source/core/text/itrcrsr.cxx
@@ -1763,8 +1763,8 @@ TextFrameIndex 
SwTextCursor::GetModelPositionForViewPoint( SwPosition *pPos, con
             sal_uInt8 nOldProp;
             if( GetPropFont() )
             {
-                const_cast<SwFont*>(GetFnt())->SetProportion( GetPropFont() );
                 nOldProp = GetFnt()->GetPropr();
+                const_cast<SwFont*>(GetFnt())->SetProportion( GetPropFont() );
             }
             else
                 nOldProp = 0;

Reply via email to