diff options
author | Andras Timar <atimar@suse.com> | 2011-10-03 15:54:22 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-10-03 15:56:31 +0200 |
commit | eabbfc9d141251dab698b2ca0ddef4d49b279cb6 (patch) | |
tree | 934b39ded7dba2e594d13bba847a1e9ad5aee365 | |
parent | c056497ec513a788500cd782a29969acbea6a6be (diff) |
solve a cosmetic issue in Extension Manager window
When the extension entry is not highlighted, replace LF to space
in description text, so words do not stick together in one line view.
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_extlistbox.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx index 96e4e596ca71..e72519d3cda2 100644 --- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx +++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx @@ -592,7 +592,7 @@ void ExtensionBox_Impl::DrawRow( const Rectangle& rRect, const TEntry_Impl pEntr aTextHeight = nIconHeight; // draw description - String sDescription; + ::rtl::OUString sDescription; if ( pEntry->m_sErrorText.Len() ) { if ( pEntry->m_bActive ) @@ -616,6 +616,8 @@ void ExtensionBox_Impl::DrawRow( const Rectangle& rRect, const TEntry_Impl pEntr } else { + //replace LF to space, so words do not stick together in one line view + sDescription = sDescription.replace(0x000A, ' '); const long nWidth = GetTextWidth( sDescription ); if ( nWidth > rRect.GetWidth() - aPos.X() ) sDescription = GetEllipsisString( sDescription, rRect.GetWidth() - aPos.X() ); |