From 62964057fccf2daa5573746f0eac971238868b19 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Mon, 21 May 2001 11:22:43 +0000 Subject: #84885#: special handling for travelling up in the root --- sfx2/source/inet/inettbc.cxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'sfx2/source/inet/inettbc.cxx') 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(); -- cgit