summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-02-05 14:35:21 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-02-05 16:36:16 -0600
commit0f2a8ec5e0d2b41a3845801682be526a528540cf (patch)
tree682b5f245bd6cd4362e4e948a7e61611414703c5 /sw
parentbb688f72cc93bd48f20b09b9673712a6a64b40ff (diff)
coverity#707765 Uninitialized scalar field
Change-Id: I35194385cc2f5d02a93ade0e8ab40fb77eba7e6e
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/txtfly.cxx17
1 files changed, 1 insertions, 16 deletions
diff --git a/sw/source/core/text/txtfly.cxx b/sw/source/core/text/txtfly.cxx
index 8d9dca09db15..0301f3b8960c 100644
--- a/sw/source/core/text/txtfly.cxx
+++ b/sw/source/core/text/txtfly.cxx
@@ -257,22 +257,7 @@ const SwRect SwContourCache::ContourRect( const SwFmt* pFmt,
pTextRanger[ 0 ]->SetLower( rULSpace.GetLower() );
delete pPolyPolygon;
- // UPPER_LOWER_TEST
-#ifdef DBG_UTIL
- const SwViewShell* pTmpViewShell = pFmt->GetDoc()->GetCurrentViewShell();
- if( pTmpViewShell )
- {
- sal_Bool bT2 = pTmpViewShell->GetViewOptions()->IsTest2();
- sal_Bool bT6 = pTmpViewShell->GetViewOptions()->IsTest6();
- if( bT2 || bT6 )
- {
- if( bT2 )
- pTextRanger[ 0 ]->SetFlag7( sal_True );
- else
- pTextRanger[ 0 ]->SetFlag6( sal_True );
- }
- }
-#endif
+
nPntCnt += pTextRanger[ 0 ]->GetPointCount();
while( nPntCnt > POLY_MAX && nObjCnt > POLY_MIN )
{