CTextBox: fix freezes in channellist and bedit

refreshTextLineArray() was to much in reSizeMainFrameHeight() and
initFramesRel(), caused endless loops under certain circumstances


Origin commit data
------------------
Commit: 1244af4666
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-20 (Thu, 20 Sep 2012)

Origin message was:
------------------
*CTextBox: fix freezes in channellist and bedit

refreshTextLineArray() was to much in reSizeMainFrameHeight() and
initFramesRel(), caused endless loops under certain circumstances
This commit is contained in:
2012-09-20 09:37:15 +02:00
parent 61c9429840
commit 656ac34059

View File

@@ -228,8 +228,7 @@ void CTextBox::reSizeMainFrameWidth(int textWidth)
m_cFrame.iWidth = iNewWindowWidth;
/* Re-Init the children frames due to new main window */
//Initialise the window frames first and than refresh text line array
initFramesAndTextArray();
initFramesRel();
}
void CTextBox::reSizeMainFrameHeight(int textHeight)
@@ -247,8 +246,7 @@ void CTextBox::reSizeMainFrameHeight(int textHeight)
m_cFrame.iHeight = iNewWindowHeight;
/* Re-Init the children frames due to new main window */
//Initialise the window frames first and than refresh text line array
initFramesAndTextArray();
initFramesRel();
}
void CTextBox::initFramesRel(void)
@@ -571,8 +569,8 @@ bool CTextBox::setText(const std::string* newText, int _max_width)
m_cText = *newText;
//m_cText = *newText + "\n"; //FIXME test
reSizeMainFrameHeight(m_cFrame.iHeight);
//Initialise the window frames first and than refresh text line array
initFramesAndTextArray();
//refresh text line array
refreshTextLineArray();
refresh();
result = true;
}