From ad72c6247116df19d0196061efd41ab15ca64dfb Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 19 Sep 2012 08:35:01 +0100 Subject: [PATCH] *CTextBox: remove frameBuffer = NULL already happens in initVar() --- src/gui/widget/textbox.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index 17998be9b..74e7ad061 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -138,8 +138,6 @@ CTextBox::CTextBox() //TRACE("[CTextBox] new\r\n"); initVar(); initFramesRel(); - - frameBuffer = NULL; } CTextBox::~CTextBox() @@ -310,7 +308,6 @@ void CTextBox::refreshTextLineArray(void) if( m_nMode & AUTO_WIDTH){ /* In case of autowidth, we calculate the max allowed width of the textbox */ lineBreakWidth = MAX_WINDOW_WIDTH - m_cFrameScrollRel.iWidth - 2*text_border_width; - }else{ /* If not autowidth, we just take the actuall textframe width */ lineBreakWidth = m_cFrameTextRel.iWidth - 2*text_border_width;