From c77a236600b11eb89c3728dfbea9e1d41a6d7723 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Thu, 10 Mar 2005 16:00:01 +0000 Subject: [PATCH] INTEGRATION: CWS dba24 (1.8.48); FILE MERGED 2005/02/03 10:20:28 fs 1.8.48.1: #i41889# --- extensions/source/propctrlr/browserline.cxx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx index 3014742c02e0..fe2ae5dd59f8 100644 --- a/extensions/source/propctrlr/browserline.cxx +++ b/extensions/source/propctrlr/browserline.cxx @@ -2,9 +2,9 @@ * * $RCSfile: browserline.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: obo $ $Date: 2004-11-16 12:00:17 $ + * last change: $Author: vg $ $Date: 2005-03-10 17:00:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -335,15 +335,16 @@ namespace pcr } //------------------------------------------------------------------ - void OBrowserLine::SetTitle(const XubString& rString ) + void OBrowserLine::SetTitle(const XubString& _rNewTtile ) { - String aText(rString); + if ( GetTitle() == _rNewTtile ) + return; // #99102# -------------- - m_aFtTitle.SetText(aText); + m_aFtTitle.SetText( _rNewTtile ); if ( m_pBrowserControl ) - m_pBrowserControl->GetMe()->SetAccessibleName( rString ); + m_pBrowserControl->GetMe()->SetAccessibleName( _rNewTtile ); if ( m_pBrowseButton ) - m_pBrowseButton->SetAccessibleName( rString ); + m_pBrowseButton->SetAccessibleName( _rNewTtile ); FullFillTitleString(); } @@ -362,7 +363,9 @@ namespace pcr //------------------------------------------------------------------ XubString OBrowserLine::GetTitle() const { - return m_aFtTitle.GetText(); + String sTitle = m_aFtTitle.GetText(); + sTitle.EraseTrailingChars( '.' ); + return sTitle; } //------------------------------------------------------------------