summaryrefslogtreecommitdiff
path: root/svx/source/xml
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/xml')
-rw-r--r--svx/source/xml/xmlgrhlp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx
index eb18e3394a5f..47f2077197c3 100644
--- a/svx/source/xml/xmlgrhlp.cxx
+++ b/svx/source/xml/xmlgrhlp.cxx
@@ -819,7 +819,7 @@ OUString SAL_CALL SvXMLGraphicHelper::resolveGraphicObjectURL( const OUString& r
{
aURL = rURL.copy( 0, nUser );
nUser++;
- aUserData = rURL.copy( nUser, rURL.getLength() - nUser );
+ aUserData = rURL.copy( nUser );
}
if ( !aUserData.isEmpty() )
{
@@ -831,7 +831,7 @@ OUString SAL_CALL SvXMLGraphicHelper::resolveGraphicObjectURL( const OUString& r
if ( ( n > 0 ) && ( ( n + 1 ) < aToken.getLength() ) )
{
OUString aParam( aToken.copy( 0, n ) );
- OUString aValue( aToken.copy( n + 1, aToken.getLength() - ( n + 1 ) ) );
+ OUString aValue( aToken.copy( n + 1 ) );
const OUString sRequestedName( "requestedName" );
if ( aParam.match( sRequestedName ) )