diff options
author | Andreas Bregas <ab@openoffice.org> | 2001-09-06 13:32:21 +0000 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2001-09-06 13:32:21 +0000 |
commit | ba06d3a22fca982b18d232cad20830a09e162ac7 (patch) | |
tree | 66dd02e281107c2f47dcc2acb13a5a766c8a0275 /basic/source/runtime/methods.cxx | |
parent | 548eaba9ab5458136f42289460ee5c825b710e04 (diff) |
#91227# implSetupWildcard(): Correct path for full named files
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 07e1f4d65611..301037a60219 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -2,9 +2,9 @@ * * $RCSfile: methods.cxx,v $ * - * $Revision: 1.33 $ + * $Revision: 1.34 $ * - * last change: $Author: ab $ $Date: 2001-09-05 11:05:45 $ + * last change: $Author: ab $ $Date: 2001-09-06 14:32:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2119,6 +2119,12 @@ String implSetupWildcard( const String& rFileParam, SbiRTLData* pRTLData, sal_Bo { pRTLData->bDoCheck = sal_True; pRTLData->sFullNameToBeChecked = aPureFileName; + + xub_StrLen nLastDelim = aPathStr.SearchBackward( cDelim1 ); + if( nLastDelim == STRING_NOTFOUND ) + aPathStr = String(); + else + aPathStr = aPathStr.Copy( 0, nLastDelim ); } return aPathStr; } |