From eabbfc9d141251dab698b2ca0ddef4d49b279cb6 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Mon, 3 Oct 2011 15:54:22 +0200 Subject: 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. --- desktop/source/deployment/gui/dp_gui_extlistbox.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'desktop/source') 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() ); -- cgit