diff options
author | Mathias Bauer <mba@openoffice.org> | 2001-05-21 11:22:43 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2001-05-21 11:22:43 +0000 |
commit | 62964057fccf2daa5573746f0eac971238868b19 (patch) | |
tree | 8e518189d7280d3c6fe2819447f3b9888fdd960c /sfx2/source/inet/inettbc.cxx | |
parent | 5880df9a5044615e2ad97b6aeac4a57e3a13e0ee (diff) |
#84885#: special handling for travelling up in the root
Diffstat (limited to 'sfx2/source/inet/inettbc.cxx')
-rw-r--r-- | sfx2/source/inet/inettbc.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx index a5ebf70e08ce..46c8fb31e56a 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(); |