- CComponentsText: add possibility to set a text border

This commit is contained in:
FlatTV
2013-06-06 22:08:46 +02:00
committed by svenhoefer
parent c70167b58f
commit 96da2f95b8
3 changed files with 8 additions and 3 deletions

View File

@@ -353,8 +353,8 @@ void CTextBox::refreshTextLineArray(void)
lineBreakWidth = std::max(m_nMaxWidth, m_cFrameTextRel.iWidth - 2*text_border_width);
}
if(m_nMaxTextWidth)
lineBreakWidth = m_nMaxTextWidth;
if(m_nMaxTextWidth)
lineBreakWidth = m_nMaxTextWidth - 2*text_border_width;
//TRACE("[CTextBox] line %d: lineBreakWidth %d\n", __LINE__, lineBreakWidth);