diff options
Diffstat (limited to 'sw/source/core/text/itratr.cxx')
-rw-r--r-- | sw/source/core/text/itratr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/text/itratr.cxx b/sw/source/core/text/itratr.cxx index 38dc69ed5887..b85e351b0a82 100644 --- a/sw/source/core/text/itratr.cxx +++ b/sw/source/core/text/itratr.cxx @@ -109,7 +109,7 @@ SwTxtAttr *SwAttrIter::GetAttr( const sal_Int32 nPosition ) const bool SwAttrIter::SeekAndChgAttrIter( const sal_Int32 nNewPos, OutputDevice* pOut ) { bool bChg = nStartIndex && nNewPos == nPos ? pFnt->IsFntChg() : Seek( nNewPos ); - if ( pLastOut != pOut ) + if ( pLastOut.get() != pOut ) { pLastOut = pOut; pFnt->SetFntChg( true ); @@ -174,7 +174,7 @@ bool SwAttrIter::SeekStartAndChgAttrIter( OutputDevice* pOut, const bool bParaFo } bool bChg = pFnt->IsFntChg(); - if ( pLastOut != pOut ) + if ( pLastOut.get() != pOut ) { pLastOut = pOut; pFnt->SetFntChg( true ); @@ -338,7 +338,7 @@ sal_Int32 SwAttrIter::GetNextAttr( ) const class SwMinMaxArgs { public: - OutputDevice* pOut; + VclPtr<OutputDevice> pOut; SwViewShell const * pSh; sal_uLong &rMin; sal_uLong &rMax; |