Kaydet (Commit) eabbfc9d authored tarafından Andras Timar's avatar Andras Timar

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.
üst c056497e
...@@ -592,7 +592,7 @@ void ExtensionBox_Impl::DrawRow( const Rectangle& rRect, const TEntry_Impl pEntr ...@@ -592,7 +592,7 @@ void ExtensionBox_Impl::DrawRow( const Rectangle& rRect, const TEntry_Impl pEntr
aTextHeight = nIconHeight; aTextHeight = nIconHeight;
// draw description // draw description
String sDescription; ::rtl::OUString sDescription;
if ( pEntry->m_sErrorText.Len() ) if ( pEntry->m_sErrorText.Len() )
{ {
if ( pEntry->m_bActive ) if ( pEntry->m_bActive )
...@@ -616,6 +616,8 @@ void ExtensionBox_Impl::DrawRow( const Rectangle& rRect, const TEntry_Impl pEntr ...@@ -616,6 +616,8 @@ void ExtensionBox_Impl::DrawRow( const Rectangle& rRect, const TEntry_Impl pEntr
} }
else else
{ {
//replace LF to space, so words do not stick together in one line view
sDescription = sDescription.replace(0x000A, ' ');
const long nWidth = GetTextWidth( sDescription ); const long nWidth = GetTextWidth( sDescription );
if ( nWidth > rRect.GetWidth() - aPos.X() ) if ( nWidth > rRect.GetWidth() - aPos.X() )
sDescription = GetEllipsisString( sDescription, rRect.GetWidth() - aPos.X() ); sDescription = GetEllipsisString( sDescription, rRect.GetWidth() - aPos.X() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment