rpms/openoffice.org/F-12 workspace.chart41.patch, NONE, 1.1 openoffice.org.spec, 1.2024, 1.2025

Caolan McNamara caolanm at fedoraproject.org
Wed Oct 28 20:37:18 UTC 2009


Author: caolanm

Update of /cvs/pkgs/rpms/openoffice.org/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11514/F-12

Modified Files:
	openoffice.org.spec 
Added Files:
	workspace.chart41.patch 
Log Message:
Resolves: rhbz#531554 add workspace.chart41.patch (caolanm)

workspace.chart41.patch:
 xmleohlp.cxx |   28 +++++++++++++++++++++++-----
 1 file changed, 23 insertions(+), 5 deletions(-)

--- NEW FILE workspace.chart41.patch ---
diff -r b35923844c43 -r edc399361b6d svx/source/xml/xmleohlp.cxx
--- a/svx/source/xml/xmleohlp.cxx	Mon Sep 14 10:36:01 2009 +0000
+++ b/svx/source/xml/xmleohlp.cxx	Mon Sep 14 11:57:16 2009 +0000
@@ -326,11 +326,29 @@
 		}
 		else
 		{
-			sal_Int32 nPathStart = 0;
-			if( 0 == aURLNoPar.compareToAscii( "./", 2 ) )
-				nPathStart = 2;
-			if( _nPos >= nPathStart )
-				rContainerStorageName = aURLNoPar.copy( nPathStart, _nPos-nPathStart);
+            //eliminate 'superfluous' slashes at start and end
+            //#i103076# load objects with all allowed xlink:href syntaxes
+            {
+                //eliminate './' at start
+			    sal_Int32 nStart = 0;
+                sal_Int32 nCount = aURLNoPar.getLength();
+			    if( 0 == aURLNoPar.compareToAscii( "./", 2 ) )
+                {
+				    nStart = 2;
+                    nCount -= 2;
+                }
+
+                //eliminate '/' at end
+                sal_Int32 nEnd = aURLNoPar.lastIndexOf( '/' );
+                if( nEnd == aURLNoPar.getLength()-1 && nEnd != (nStart-1) )
+                    nCount--;
+
+                aURLNoPar = aURLNoPar.copy( nStart, nCount );
+            }
+
+            _nPos = aURLNoPar.lastIndexOf( '/' );
+            if( _nPos >= 0 )
+				rContainerStorageName = aURLNoPar.copy( 0, _nPos );
 			rObjectStorageName = aURLNoPar.copy( _nPos+1 );
 		}
 	}


Index: openoffice.org.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openoffice.org/F-12/openoffice.org.spec,v
retrieving revision 1.2024
retrieving revision 1.2025
diff -u -p -r1.2024 -r1.2025
--- openoffice.org.spec	28 Oct 2009 13:56:39 -0000	1.2024
+++ openoffice.org.spec	28 Oct 2009 20:37:17 -0000	1.2025
@@ -166,6 +166,7 @@ Patch89: openoffice.org-3.1.1.oooXXXXXX.
 Patch90: openoffice.org-3.2.0.ooo105988.svx.a11ycrash.patch
 Patch91: workspace.impress178.patch
 Patch92: openoffice.org-3.1.1.ooo106130.svx.removedeletedshapes.patch
+Patch93: workspace.chart41.patch
 
 %define python_py_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")
 %define instdir %{_libdir}
@@ -1718,6 +1719,7 @@ cat %{PATCH11} >> svtools/source/dialogs
 %patch90 -p0 -b .ooo105988.svx.a11ycrash.patch
 %patch91 -p0 -b .workspace.impress178.patch
 %patch92 -p0 -b .ooo106130.svx.removedeletedshapes.patch
+%patch93 -p1 -b .workspace.chart41.patch
 
 %build
 echo build start time is `date`, diskspace: `df -h . | tail -n 1`
@@ -4254,6 +4256,7 @@ fi
 * Wed Oct 28 2009 Caolán McNamara <caolanm at redhat.com> - 1:3.1.1-19.14
 - Resolves: ooo#103757 custom shape cut and paste (caolanm)
 - Resolves: rhbz#529746 crash on exit after loading .ppt (caolanm)
+- Resolves: rhbz#531554 add workspace.chart41.patch (caolanm)
 
 * Mon Oct 19 2009 Caolán McNamara <caolanm at redhat.com> - 1:3.1.1-19.13
 - Resolves: ooo#105988 a11y crash in impress (caolanm)




More information about the fedora-extras-commits mailing list