summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-01-26 05:32:35 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-01-26 22:05:58 -0600
commit121d5d545b256333543b4679ef64313fac4ad109 (patch)
tree01060536cac1786e8b7b5d96cfbfdcbbe176e9ab /sw/source
parenteeb0ff07ad90936cff16f065680b95f0e4ae7192 (diff)
coverity#1130487 : Unitialized scalar field
Change-Id: Iea976b917c41b7557b18298e20adf2ccd6663670
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/frmpaint.cxx25
1 files changed, 18 insertions, 7 deletions
diff --git a/sw/source/core/text/frmpaint.cxx b/sw/source/core/text/frmpaint.cxx
index 889040416f0f..422a0496b9f4 100644
--- a/sw/source/core/text/frmpaint.cxx
+++ b/sw/source/core/text/frmpaint.cxx
@@ -94,11 +94,20 @@ public:
SwExtraPainter::SwExtraPainter( const SwTxtFrm *pFrm, SwViewShell *pVwSh,
- const SwLineNumberInfo &rLnInf, const SwRect &rRct,
- sal_Int16 eHor, bool bLnNm )
- : aClip( pVwSh->GetWin() || pFrm->IsUndersized() ? pVwSh->GetOut() : 0 ),
- aRect( rRct ), pTxtFrm( pFrm ), pSh( pVwSh ), pFnt( 0 ), rLineInf( rLnInf ),
- nLineNr( 1L ), bLineNum( bLnNm )
+ const SwLineNumberInfo &rLnInf, const SwRect &rRct,
+ sal_Int16 eHor, bool bLnNm )
+ : aClip( pVwSh->GetWin() || pFrm->IsUndersized() ? pVwSh->GetOut() : 0 )
+ , aRect( rRct )
+ , pTxtFrm( pFrm )
+ , pSh( pVwSh )
+ , pFnt( 0 )
+ , rLineInf( rLnInf )
+ , nX(0)
+ , nRedX(0)
+ , nLineNr( 1L )
+ , nDivider(0)
+ , bGoLeft(false)
+ , bLineNum( bLnNm )
{
if( pFrm->IsUndersized() )
{
@@ -108,14 +117,16 @@ SwExtraPainter::SwExtraPainter( const SwTxtFrm *pFrm, SwViewShell *pVwSh,
}
MSHORT nVirtPageNum = 0;
if( bLineNum )
- {/* Initializes the Members necessary for line numbering:
+ {
+ /* Initializes the Members necessary for line numbering:
nDivider, how often do we want a substring; 0 == never
nX, line number's x position
pFnt, line number's font
nLineNr, the first line number
bLineNum is set back to sal_False if the numbering is completely
- outside of the paint rect */
+ outside of the paint rect
+ */
nDivider = !rLineInf.GetDivider().isEmpty() ? rLineInf.GetDividerCountBy() : 0;
nX = pFrm->Frm().Left();
SwCharFmt* pFmt = rLineInf.GetCharFmt( const_cast<IDocumentStylePoolAccess&>(*pFrm->GetNode()->getIDocumentStylePoolAccess()) );