editeng/source/editeng/impedit3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 28840350c20a165721b649728ee1a9dac6915d9d
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Sat Nov 23 10:28:46 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Jul 7 13:52:35 2025 +0200

    tdf#163486: PVS V1028 Possible overflow. Consider casting operands,
    
    not the result.
    
    Change-Id: I7fb25f574b2142c3fb49a5592f7adb3849ea245b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177105
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins

diff --git a/editeng/source/editeng/impedit3.cxx 
b/editeng/source/editeng/impedit3.cxx
index ae32cd98cd61..70035d9bc9f0 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -1106,7 +1106,7 @@ bool ImpEditEngine::CreateLines( sal_Int32 nPara, 
sal_uInt32 nStartPosY, bool bI
 
                         short nAllSpaceBeforeText = 
short(rLRItem.ResolveTextLeft({}));
                         aCurrentTab.aTabStop = 
pNode->GetContentAttribs().FindTabStop( nCurPos - nAllSpaceBeforeText , 
maEditDoc.GetDefTab() );
-                        aCurrentTab.nTabPos = 
tools::Long(aCurrentTab.aTabStop.GetTabPos() + nAllSpaceBeforeText);
+                        aCurrentTab.nTabPos = 
tools::Long(aCurrentTab.aTabStop.GetTabPos()) + nAllSpaceBeforeText;
                         aCurrentTab.bValid = false;
 
                         // Switch direction in R2L para...

Reply via email to