Lines 102-108
Link Here
|
102 |
rtl::OUString sFileName = aPathOptions.SubstituteVariable(sValue); |
102 |
rtl::OUString sFileName = aPathOptions.SubstituteVariable(sValue); |
103 |
if ( sValue == sFileName ) |
103 |
if ( sValue == sFileName ) |
104 |
{ |
104 |
{ |
105 |
sLocation = ::svt::OFileNotation(rImport.GetAbsoluteReference(sValue)).get( ::svt::OFileNotation::N_SYSTEM ); |
105 |
const sal_Int32 nFileNameLength = sFileName.getLength(); |
|
|
106 |
if ( ( nFileNameLength > 0 ) && ( sFileName.getStr()[ nFileNameLength - 1 ] == '/' ) ) |
107 |
sFileName = sFileName.copy( 0, nFileNameLength - 1 ); |
108 |
|
109 |
sLocation = ::svt::OFileNotation( rImport.GetAbsoluteReference( sFileName ) ).get( ::svt::OFileNotation::N_SYSTEM ); |
106 |
} |
110 |
} |
107 |
|
111 |
|
108 |
if ( sLocation.getLength() == 0 ) |
112 |
if ( sLocation.getLength() == 0 ) |