summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-07 09:44:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-07 11:56:33 +0200
commit13aaeb5d148c1ea5163eecaa176fac4a67689277 (patch)
treeaec61f7edf1bda0ac03fd5d277a2c2078d137fac /sw/source
parentc56b5f9758c942ff5ccaaff5632fbe4ace8c3cbb (diff)
cid#1401328 Uncaught exception
and cid#1401334 Uncaught exception Change-Id: I609ec44bf28db28e69533d7b795f705fa8a330f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115228 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/frmpaint.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/text/frmpaint.cxx b/sw/source/core/text/frmpaint.cxx
index 1b77a6f7a711..6f1d1fc12ad1 100644
--- a/sw/source/core/text/frmpaint.cxx
+++ b/sw/source/core/text/frmpaint.cxx
@@ -567,11 +567,11 @@ bool SwTextFrame::PaintEmpty( const SwRect &rRect, bool bCheck ) const
if ( rSpace.GetTextFirstLineOffset() > 0 )
aPos.AdjustX(rSpace.GetTextFirstLineOffset() );
- std::unique_ptr<SwSaveClip> pClip;
+ std::unique_ptr<SwSaveClip, o3tl::default_delete<SwSaveClip>> xClip;
if( IsUndersized() )
{
- pClip.reset(new SwSaveClip( pSh->GetOut() ));
- pClip->ChgClip( rRect );
+ xClip.reset(new SwSaveClip( pSh->GetOut() ));
+ xClip->ChgClip( rRect );
}
aPos.AdjustY(pFnt->GetAscent( pSh, *pSh->GetOut() ) );