summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/inet/inettbc.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index 5b2b156aa9e4..7e291020ba2f 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: inettbc.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: mba $ $Date: 2001-06-08 08:52:09 $
+ * last change: $Author: pb $ $Date: 2001-06-11 09:14:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1009,8 +1009,16 @@ String SfxURLBox::GetURL()
INetURLObject aObj( aText );
if( aText.Search( '*' ) != STRING_NOTFOUND || aText.Search( '?' ) != STRING_NOTFOUND )
+ {
// no autocompletion for wildcards
- return aObj.GetMainURL();
+ INetURLObject aTempObj;
+ if ( eSmartProtocol != INET_PROT_NOT_VALID )
+ aTempObj.SetSmartProtocol( eSmartProtocol );
+ if ( aTempObj.SetSmartURL( aText ) )
+ return aTempObj.GetMainURL();
+ else
+ return aText;
+ }
if ( aObj.GetProtocol() == INET_PROT_NOT_VALID )
{