[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sat Jan 11 20:38:40 UTC 2020


 sw/source/core/text/inftxt.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 1583d309dd4754c7c97f5464315a518aea390bb1
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jan 11 19:40:33 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Jan 11 21:38:02 2020 +0100

    cid#1401328 Uncaught exception
    
    Change-Id: Ib8b988f0308d8d438e0f093594a179c84731ab3e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86623
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx
index efe9d54e1222..83e8bde03ad3 100644
--- a/sw/source/core/text/inftxt.cxx
+++ b/sw/source/core/text/inftxt.cxx
@@ -64,6 +64,7 @@
 #include <EnhancedPDFExportHelper.hxx>
 #include <docsh.hxx>
 #include <strings.hrc>
+#include <o3tl/deleter.hxx>
 #include <vcl/gdimtf.hxx>
 #include <vcl/virdev.hxx>
 #include <vcl/gradient.hxx>
@@ -747,7 +748,7 @@ void SwTextPaintInfo::DrawText_( const OUString &rText, const SwLinePortion &rPo
     }
 
     // Handle semi-transparent text if necessary.
-    std::unique_ptr<SwTransparentTextGuard> pTransparentText;
+    std::unique_ptr<SwTransparentTextGuard, o3tl::default_delete<SwTransparentTextGuard>> pTransparentText;
     if (m_pFnt->GetColor() != COL_AUTO && m_pFnt->GetColor().GetTransparency() != 0)
     {
         pTransparentText.reset(new SwTransparentTextGuard(rPor, *this, aDrawInf));


More information about the Libreoffice-commits mailing list