Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found 
with Coverity Scan.

2 new defect(s) introduced to LibreOffice found with Coverity Scan.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent 
build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)


** CID 1497924:    (DEADCODE)
/sc/source/ui/view/viewdata.cxx: 1937 in ScViewData::EditGrowX()()
/sc/source/ui/view/viewdata.cxx: 1936 in ScViewData::EditGrowX()()


________________________________________________________________________________________________________
*** CID 1497924:    (DEADCODE)
/sc/source/ui/view/viewdata.cxx: 1937 in ScViewData::EditGrowX()()
1931     
1932                 aArea.AdjustLeft( -((bLayoutRTL && !bLOKActive) ? 
nLogicRight : nLogicLeft) );
1933                 aArea.AdjustRight((bLayoutRTL && !bLOKActive) ? nLogicLeft 
: nLogicRight );
1934                 if (bLOKPrintTwips)
1935                 {
1936                     aAreaPTwips.AdjustLeft( -((bLayoutRTL && !bLOKActive) 
? nLogicRightPTwips : nLogicLeftPTwips) );
>>>     CID 1497924:    (DEADCODE)
>>>     Execution cannot reach the expression "nLogicLeftPTwips" inside this 
>>> statement: "aAreaPTwips.AdjustRight(((b...".
1937                     aAreaPTwips.AdjustRight((bLayoutRTL && !bLOKActive) ? 
nLogicLeftPTwips : nLogicRightPTwips );
1938                 }
1939     
1940                 if ( aArea.Right() > aArea.Left() + aSize.Width() - 1 )
1941                 {
1942                     tools::Long nCenter = ( aArea.Left() + aArea.Right() ) 
/ 2;
/sc/source/ui/view/viewdata.cxx: 1936 in ScViewData::EditGrowX()()
1930                 }
1931     
1932                 aArea.AdjustLeft( -((bLayoutRTL && !bLOKActive) ? 
nLogicRight : nLogicLeft) );
1933                 aArea.AdjustRight((bLayoutRTL && !bLOKActive) ? nLogicLeft 
: nLogicRight );
1934                 if (bLOKPrintTwips)
1935                 {
>>>     CID 1497924:    (DEADCODE)
>>>     Execution cannot reach the expression "nLogicRightPTwips" inside this 
>>> statement: "aAreaPTwips.AdjustLeft(-((b...".
1936                     aAreaPTwips.AdjustLeft( -((bLayoutRTL && !bLOKActive) 
? nLogicRightPTwips : nLogicLeftPTwips) );
1937                     aAreaPTwips.AdjustRight((bLayoutRTL && !bLOKActive) ? 
nLogicLeftPTwips : nLogicRightPTwips );
1938                 }
1939     
1940                 if ( aArea.Right() > aArea.Left() + aSize.Width() - 1 )
1941                 {

** CID 1497923:    (DEADCODE)
/sc/source/ui/view/viewdata.cxx: 2031 in ScViewData::EditGrowX()()
/sc/source/ui/view/viewdata.cxx: 2016 in ScViewData::EditGrowX()()


________________________________________________________________________________________________________
*** CID 1497923:    (DEADCODE)
/sc/source/ui/view/viewdata.cxx: 2031 in ScViewData::EditGrowX()()
2025                 if ( aArea.Right() > aArea.Left() + aSize.Width() - 1 )
2026                 {
2027                     if ( bLayoutRTL && !bLOKActive )
2028                     {
2029                         aArea.SetLeft( aArea.Right() - aSize.Width() + 1 );
2030                         if (bLOKPrintTwips)
>>>     CID 1497923:    (DEADCODE)
>>>     Execution cannot reach this statement: "aAreaPTwips.SetLeft(aAreaPT...".
2031                             aAreaPTwips.SetLeft( aAreaPTwips.Right() - 
aSizePTwips.Width() + 1 );
2032                     }
2033                     else
2034                     {
2035                         aArea.SetRight( aArea.Left() + aSize.Width() - 1 );
2036                         if (bLOKPrintTwips)
/sc/source/ui/view/viewdata.cxx: 2016 in ScViewData::EditGrowX()()
2010                 tools::Long nLogicWidth = 
pWin->PixelToLogic(Size(nPix,0)).Width();
2011                 tools::Long& nLogicWidthPTwips = nColWidth;
2012                 if ( bLayoutRTL && !bLOKActive )
2013                 {
2014                     aArea.AdjustLeft( -nLogicWidth );
2015                     if (bLOKPrintTwips)
>>>     CID 1497923:    (DEADCODE)
>>>     Execution cannot reach this statement: "aAreaPTwips.AdjustLeft(-nLo...".
2016                         aAreaPTwips.AdjustLeft( -nLogicWidthPTwips );
2017                 }
2018                 else
2019                 {
2020                     aArea.AdjustRight(nLogicWidth );
2021                     if (bLOKPrintTwips)


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DdmSt_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiK8z4nI92mF-2FTV1gOJbYZXBdsBbGyB-2FneQaoH9oKSYu3gHpfP7vbzj-2FeKsqa2e998IHAS7OUn9K6v86jNRR2SUTfl73ctZMtXfHVVWkef4h2qloYw-2BCAJjZUWfUrKJOLV0vPtqLt0z-2FDW7nv9OjlPZVSDpbpEgqerg7agrZUC1tA-3D

Reply via email to