summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2013-10-17 23:21:18 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2013-10-17 23:32:10 +0200
commitfc357b79e71577916e8d1970c6419619b950bd1c (patch)
treedc9ddd584ade6723bff087b699a55fd7990f4975 /sw
parent94f99a6baeb27af70f4aa74e74a3090d50f24470 (diff)
Remove dead check for start of string
Change-Id: Ib8fcc3dc5d216d1cfae569f605a3f415f80770c4
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/graphic/ndgrf.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 70436b0761cb..1cd2bd506763 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -489,9 +489,7 @@ StreamAndStorageNames lcl_GetStreamStorageNames( const OUString sUserData )
}
else
{
- sal_Int32 nPathStart = aProt.getLength();
- if (sUserData.startsWith("./"))
- nPathStart += 2;
+ const sal_Int32 nPathStart = aProt.getLength();
aNames.sStorage = sUserData.copy( nPathStart, nPos-nPathStart );
aNames.sStream = sUserData.copy( nPos+1 );
}