[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 7 09:57:19 UTC 2021
sw/source/core/text/frmpaint.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 13aaeb5d148c1ea5163eecaa176fac4a67689277
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri May 7 09:44:45 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri May 7 11:56:33 2021 +0200
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 at redhat.com>
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() ) );
More information about the Libreoffice-commits
mailing list