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

Andras Timar andras.timar at collabora.com
Mon Feb 13 08:15:22 UTC 2017


 oox/source/ppt/pptimport.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1e253b2ace59e0befce8fe22a0d5afd40b313d4f
Author: Andras Timar <andras.timar at collabora.com>
Date:   Fri Feb 10 21:26:17 2017 +0100

    Related: tdf#105707 PPTX import: decode document name from URL
    
    Change-Id: Ic4825549c6fef1a609a753a10f6224cbcd69b7fc
    Reviewed-on: https://gerrit.libreoffice.org/34135
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/oox/source/ppt/pptimport.cxx b/oox/source/ppt/pptimport.cxx
index 043d014..6d54520 100644
--- a/oox/source/ppt/pptimport.cxx
+++ b/oox/source/ppt/pptimport.cxx
@@ -104,7 +104,7 @@ bool PowerPointImport::importDocument()
     {
         // Construct a warning message.
         INetURLObject aURL(getFileUrl());
-        SfxErrorContext aContext(ERRCTX_SFX_OPENDOC, aURL.getName(INetURLObject::LAST_SEGMENT), nullptr, RID_ERRCTX);
+        SfxErrorContext aContext(ERRCTX_SFX_OPENDOC, aURL.getName(INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::WithCharset), nullptr, RID_ERRCTX);
         OUString aWarning;
         aContext.GetString(ERRCODE_WARNING_MASK, aWarning);
         aWarning += ":\n";


More information about the Libreoffice-commits mailing list