summaryrefslogtreecommitdiff
path: root/basic/source/runtime/methods.cxx
diff options
context:
space:
mode:
authorAndreas Bregas <ab@openoffice.org>2001-09-06 13:32:21 +0000
committerAndreas Bregas <ab@openoffice.org>2001-09-06 13:32:21 +0000
commitba06d3a22fca982b18d232cad20830a09e162ac7 (patch)
tree66dd02e281107c2f47dcc2acb13a5a766c8a0275 /basic/source/runtime/methods.cxx
parent548eaba9ab5458136f42289460ee5c825b710e04 (diff)
#91227# implSetupWildcard(): Correct path for full named files
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r--basic/source/runtime/methods.cxx10
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;
}