summaryrefslogtreecommitdiff
path: root/sfx2/source/inet
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-05-21 11:22:43 +0000
committerMathias Bauer <mba@openoffice.org>2001-05-21 11:22:43 +0000
commiteaf09b75e2ccbcf15cce9a8358b6df6cf218b0d8 (patch)
tree1ddc4a5864d0f49415e63da95e5c5eb75f125d47 /sfx2/source/inet
parent6f9b603254be399ffe11c53963186f22f90a6a77 (diff)
#84885#: special handling for travelling up in the root
Diffstat (limited to 'sfx2/source/inet')
-rw-r--r--sfx2/source/inet/inettbc.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index 5bd97a555a..198e38692d 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: inettbc.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: mba $ $Date: 2001-04-27 12:45:06 $
+ * last change: $Author: mba $ $Date: 2001-05-21 12:22:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1017,9 +1017,14 @@ String SfxURLBox::GetURL()
::com::sun::star::uno::Any aAny = UCB_Helper::GetProperty( aObj.GetMainURL(), WID_TITLE );
::rtl::OUString aTitle;
if ( aAny >>= aTitle )
- aObj.SetName( aTitle );
- if ( bSlash )
- aObj.setFinalSlash();
+ {
+ if ( aTitle.getLength() > 1 || aTitle.compareToAscii("/") != 0 && aTitle.compareToAscii(".") != 0 )
+ {
+ aObj.SetName( aTitle );
+ if ( bSlash )
+ aObj.setFinalSlash();
+ }
+ }
}
return aObj.GetMainURL();