diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2005-03-10 16:00:01 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2005-03-10 16:00:01 +0000 |
commit | 836e0c750fe51c92106c5485f89ca901fa8e172b (patch) | |
tree | 9cd1b4da45667021fc2a3026ff4d2e11567efea9 /extensions/source/propctrlr/browserline.cxx | |
parent | 905ac2e4f7faac6b18937ac17992f6594e528997 (diff) |
INTEGRATION: CWS dba24 (1.8.48); FILE MERGED
2005/02/03 10:20:28 fs 1.8.48.1: #i41889#
Diffstat (limited to 'extensions/source/propctrlr/browserline.cxx')
-rw-r--r-- | extensions/source/propctrlr/browserline.cxx | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx index 39ee0f1bb..8905318d8 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; } //------------------------------------------------------------------ |