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

Caolán McNamara caolanm at redhat.com
Tue Apr 14 13:01:17 PDT 2015


 sd/source/filter/eppt/epptso.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit eece059c1f728059b536763bffd2d4fc3537833e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Apr 14 20:59:50 2015 +0100

    fix assert on re-export of ooo48994-1.ppt to ppt
    
    Change-Id: Ic8274e7d060f315d7891f8f5cf576f834ca89117

diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index b80f143..4223c58 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -1140,7 +1140,7 @@ void PPTWriter::ImplWriteTextStyleAtom( SvStream& rOut, int nTextInstance, sal_u
                                 aFile = aFile.replaceAll( "/", "\\" );
                                 aTarget = aFile;
                             }
-                            else if ( pFieldEntry->aFieldUrl[0] == '#' )
+                            else if ( pFieldEntry->aFieldUrl.startsWith("#") )
                             {
                                 OUString aPage( INetURLObject::decode( pFieldEntry->aFieldUrl, INetURLObject::DECODE_WITH_CHARSET ) );
                                 aPage = aPage.copy( 1 );


More information about the Libreoffice-commits mailing list